Browse Source

TextureTools: const is available since GLSL 4.20.

pull/68/head
Vladimír Vondruš 12 years ago
parent
commit
6fa9d36005
  1. 5
      src/Magnum/TextureTools/DistanceFieldShader.frag

5
src/Magnum/TextureTools/DistanceFieldShader.frag

@ -26,10 +26,13 @@
#ifndef NEW_GLSL #ifndef NEW_GLSL
#define in varying #define in varying
#define value gl_FragColor.x #define value gl_FragColor.x
#define const
#define texture texture2D #define texture texture2D
#endif #endif
#ifndef RUNTIME_CONST
#define const
#endif
#if (defined(GL_ES) && __VERSION__ >= 300) || (!defined(GL_ES) && __VERSION__ >= 150) #if (defined(GL_ES) && __VERSION__ >= 300) || (!defined(GL_ES) && __VERSION__ >= 150)
#define TEXELFETCH_USABLE #define TEXELFETCH_USABLE
#endif #endif

Loading…
Cancel
Save