Only advertise the SDL_PIXELFORMAT_EXTERNAL_OES format if we can build the shader for it

This commit is contained in:
Sam Lantinga
2022-09-16 06:15:45 -07:00
parent 6de15ffcd6
commit 5bc85d6788
2 changed files with 5 additions and 2 deletions

View File

@@ -56,6 +56,7 @@ typedef enum
GLES2_SHADER_FRAGMENT_TEXTURE_NV21_BT601,
GLES2_SHADER_FRAGMENT_TEXTURE_NV21_BT709,
#endif
/* Shaders beyond this point are optional and not cached at render creation */
GLES2_SHADER_FRAGMENT_TEXTURE_EXTERNAL_OES,
GLES2_SHADER_COUNT
} GLES2_ShaderType;