SDL: fixed a crash on an emulator

This commit is contained in:
Sergii Pylypenko
2017-11-01 17:42:10 +02:00
parent 25a86103ec
commit 212e761d33

View File

@@ -313,6 +313,10 @@ GLES_CreateRenderer(SDL_Window * window, Uint32 flags)
#if SDL_VIDEO_DRIVER_PANDORA
data->GL_OES_draw_texture_supported = SDL_FALSE;
data->useDrawTexture = SDL_FALSE;
#else
#ifdef ANDROID
data->GL_OES_draw_texture_supported = SDL_TRUE;
data->useDrawTexture = SDL_TRUE;
#else
if (SDL_GL_ExtensionSupported("GL_OES_draw_texture")) {
data->GL_OES_draw_texture_supported = SDL_TRUE;
@@ -321,9 +325,6 @@ GLES_CreateRenderer(SDL_Window * window, Uint32 flags)
data->GL_OES_draw_texture_supported = SDL_FALSE;
data->useDrawTexture = SDL_FALSE;
}
#ifdef ANDROID
data->GL_OES_draw_texture_supported = SDL_TRUE;
data->useDrawTexture = SDL_TRUE;
#endif
#endif