From c7ee42f0ba16623cab44678a586c248d068933f7 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Sun, 17 Mar 2024 17:54:37 +0100 Subject: [PATCH] ios: don't use glad Fixes crash at start up on iOS. Issue #1461 --- core/wsi/gl_context.h | 2 +- core/wsi/osx.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/wsi/gl_context.h b/core/wsi/gl_context.h index 1858322ef..03c9c59a1 100644 --- a/core/wsi/gl_context.h +++ b/core/wsi/gl_context.h @@ -22,7 +22,7 @@ #include "types.h" #include "context.h" -#if defined(USE_OPENGL) && !defined(LIBRETRO) +#if defined(USE_OPENGL) && !defined(LIBRETRO) && !defined(TARGET_IPHONE) #include #endif diff --git a/core/wsi/osx.h b/core/wsi/osx.h index ee5f45ad4..0e84c12d6 100644 --- a/core/wsi/osx.h +++ b/core/wsi/osx.h @@ -21,6 +21,8 @@ #pragma once #if defined(TARGET_IPHONE) #include "gl_context.h" +#include +#include class OSXGraphicsContext : public GLGraphicsContext {