mirror of https://github.com/encounter/SDL.git
Fix compilation (see #5313)
This commit is contained in:
parent
0983fcee5e
commit
04256a5372
|
@ -1379,6 +1379,7 @@ GLES2_CreateTexture(SDL_Renderer *renderer, SDL_Texture *texture)
|
||||||
type = GL_UNSIGNED_BYTE;
|
type = GL_UNSIGNED_BYTE;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef GL_TEXTURE_EXTERNAL_OES
|
||||||
case SDL_PIXELFORMAT_EXTERNAL_OES:
|
case SDL_PIXELFORMAT_EXTERNAL_OES:
|
||||||
format = GL_NONE;
|
format = GL_NONE;
|
||||||
type = GL_NONE;
|
type = GL_NONE;
|
||||||
|
@ -2142,6 +2143,7 @@ GLES2_CreateRenderer(SDL_Window *window, Uint32 flags)
|
||||||
renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_NV12;
|
renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_NV12;
|
||||||
renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_NV21;
|
renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_NV21;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef GL_TEXTURE_EXTERNAL_OES
|
||||||
renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_EXTERNAL_OES;
|
renderer->info.texture_formats[renderer->info.num_texture_formats++] = SDL_PIXELFORMAT_EXTERNAL_OES;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue