glsl: tweak pre-processor to support Apple GLSL compiler

The Apple GLSL compiler cannot deal with empty pre-processor blocks such as

  #if GSK_GLES
  #elif GSK_LEGACY
This commit is contained in:
Christian Hergert 2020-10-29 09:37:33 -07:00
parent 0040667965
commit a3fd46c516

View File

@ -5,10 +5,9 @@ uniform float u_alpha;// = 1.0;
uniform vec4 u_viewport;
uniform vec4[3] u_clip_rect;
#if GSK_GLES
#elif GSK_LEGACY
#if defined(GSK_LEGACY)
_OUT_ vec4 outputColor;
#else
#elif !defined(GSK_GLES)
_OUT_ vec4 outputColor;
#endif