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
#define in varying
#define value gl_FragColor.x
#define const
#define texture texture2D
#endif
#ifndef RUNTIME_CONST
#define const
#endif
#if (defined(GL_ES) && __VERSION__ >= 300) || (!defined(GL_ES) && __VERSION__ >= 150)
#define TEXELFETCH_USABLE
#endif

Loading…
Cancel
Save