mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 11:58:12 +00:00
Don't assume OpenGL on Android
This prevents Vulkan from initializing by default. Fixes https://github.com/libsdl-org/SDL/issues/10279
This commit is contained in:
@@ -258,7 +258,7 @@ typedef struct
|
|||||||
|
|
||||||
static Uint32 SDL_DefaultGraphicsBackends(SDL_VideoDevice *_this)
|
static Uint32 SDL_DefaultGraphicsBackends(SDL_VideoDevice *_this)
|
||||||
{
|
{
|
||||||
#if (defined(SDL_VIDEO_OPENGL) && defined(SDL_PLATFORM_MACOS)) || (defined(SDL_PLATFORM_IOS) && !TARGET_OS_MACCATALYST) || defined(SDL_PLATFORM_ANDROID)
|
#if (defined(SDL_VIDEO_OPENGL) && defined(SDL_PLATFORM_MACOS)) || (defined(SDL_PLATFORM_IOS) && !TARGET_OS_MACCATALYST)
|
||||||
if (_this->GL_CreateContext) {
|
if (_this->GL_CreateContext) {
|
||||||
return SDL_WINDOW_OPENGL;
|
return SDL_WINDOW_OPENGL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user