From ea5b482bff7bca2f8e984bb9a941bbdaea385846 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 9 Mar 2022 15:38:36 +0100 Subject: [PATCH] Remove unused warning --- src/render/opengles2/SDL_shaders_gles2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/render/opengles2/SDL_shaders_gles2.c b/src/render/opengles2/SDL_shaders_gles2.c index 6e4ee03e8..a1f78fdd9 100644 --- a/src/render/opengles2/SDL_shaders_gles2.c +++ b/src/render/opengles2/SDL_shaders_gles2.c @@ -121,6 +121,8 @@ static const Uint8 GLES2_Fragment_TextureBGR[] = " \ } \ "; +#if SDL_HAVE_YUV + #define JPEG_SHADER_CONSTANTS \ "// YUV offset \n" \ "const vec3 offset = vec3(0, -0.501960814, -0.501960814);\n" \ @@ -299,6 +301,7 @@ static const Uint8 GLES2_Fragment_TextureNV21BT709[] = \ BT709_SHADER_CONSTANTS \ NV21_SHADER_BODY \ ; +#endif /* Custom Android video format texture */ static const Uint8 GLES2_Fragment_TextureExternalOES[] = " \