Browse Source

Shaders: off-by-one error.

Explicit attrib location is supported on GLSL >= 130, not >= 120.
pull/7/head
Vladimír Vondruš 14 years ago
parent
commit
1d88310521
  1. 2
      src/Shaders/compatibility.glsl

2
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

Loading…
Cancel
Save