]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix a type mismatch in the standard shader source
authorMikko Rasa <tdb@tdb.fi>
Fri, 31 Aug 2012 07:06:54 +0000 (10:06 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 31 Aug 2012 07:06:54 +0000 (10:06 +0300)
source/programbuilder.cpp

index 05e801c72b8cc3cbbd77821a6e0dcdf84670955f..a24b5d565c6687dc3a614c1834fb1026d262d681 100644 (file)
@@ -81,7 +81,7 @@ const ProgramBuilder::StandardVariable ProgramBuilder::standard_variables[] =
        { VERTEX, "eye_binormal", "vec3", "gl_NormalMatrix*binormal", "!r" },
        { VERTEX, "eye_binormal", "vec3", "transform_normal(binormal)", "r" },
        { VERTEX, "color", "vec4", "gl_Color", 0 },
-       { VERTEX, "texture_coord", "vec2", "gl_MultiTexCoord0", 0 },
+       { VERTEX, "texture_coord", "vec2", "gl_MultiTexCoord0.xy", 0 },
 
        { ATTRIBUTE, "tangent", "vec3", 0, 0 },
        { ATTRIBUTE, "binormal", "vec3", 0, 0 },