Browse Source

Remove unused warning

Sylvain 3 years ago
parent
commit
ea5b482bff
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/render/opengles2/SDL_shaders_gles2.c

+ 3 - 0
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[] = " \