From 6fa9d36005c0d27470678b5c6edd4e61e44813d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 28 Jul 2014 23:04:52 +0200 Subject: [PATCH] TextureTools: const is available since GLSL 4.20. --- src/Magnum/TextureTools/DistanceFieldShader.frag | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Magnum/TextureTools/DistanceFieldShader.frag b/src/Magnum/TextureTools/DistanceFieldShader.frag index b82c6d94b..1224b7f72 100644 --- a/src/Magnum/TextureTools/DistanceFieldShader.frag +++ b/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