From 1d88310521f85883234e00578602758cc1139425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 20 Jan 2013 20:17:10 +0100 Subject: [PATCH] Shaders: off-by-one error. Explicit attrib location is supported on GLSL >= 130, not >= 120. --- src/Shaders/compatibility.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Shaders/compatibility.glsl b/src/Shaders/compatibility.glsl index c6ebfa748..2d3994a68 100644 --- a/src/Shaders/compatibility.glsl +++ b/src/Shaders/compatibility.glsl @@ -4,7 +4,7 @@ /* On NVidia and GLSL 1.20 layout qualifiers result in parsing error, even if the extension is defined as supported */ -#if !defined(GL_ES) && __VERSION__ >= 120 +#if !defined(GL_ES) && __VERSION__ >= 130 #ifdef GL_ARB_explicit_attrib_location #extension GL_ARB_explicit_attrib_location: enable