From 9ec2b35147764f725c99cc732ec7777d59dda6ab Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 15 Nov 2021 13:45:53 -0800 Subject: [PATCH] Fixed the GLES2 shader count to be in sync with the enum --- src/render/opengles2/SDL_shaders_gles2.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/render/opengles2/SDL_shaders_gles2.h b/src/render/opengles2/SDL_shaders_gles2.h index a03a980fe..3a6e5b366 100644 --- a/src/render/opengles2/SDL_shaders_gles2.h +++ b/src/render/opengles2/SDL_shaders_gles2.h @@ -45,11 +45,10 @@ typedef enum GLES2_SHADER_FRAGMENT_TEXTURE_NV21_JPEG, GLES2_SHADER_FRAGMENT_TEXTURE_NV21_BT601, GLES2_SHADER_FRAGMENT_TEXTURE_NV21_BT709, - GLES2_SHADER_FRAGMENT_TEXTURE_EXTERNAL_OES + GLES2_SHADER_FRAGMENT_TEXTURE_EXTERNAL_OES, + GLES2_SHADER_COUNT } GLES2_ShaderType; -#define GLES2_SHADER_COUNT 16 - const Uint8 *GLES2_GetShader(GLES2_ShaderType type); #endif /* SDL_VIDEO_RENDER_OGL_ES2 */