diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-24 11:44:48 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-24 11:44:48 -0700 |
commit | 25893baacf19a15a944ad57721a07b04380d733b (patch) | |
tree | be971b064d41097f7d2ea4c8e4d857e2f13aef15 /tests/cubegeom.c | |
parent | a32ac16a6c65d4a51354255c8b98e1c95faf2fc6 (diff) |
fix cubegeom shader compilation error
Diffstat (limited to 'tests/cubegeom.c')
-rw-r--r-- | tests/cubegeom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cubegeom.c b/tests/cubegeom.c index 1fb5eeef..739d2dd6 100644 --- a/tests/cubegeom.c +++ b/tests/cubegeom.c @@ -204,8 +204,8 @@ int main(int argc, char *argv[]) "void main(void)\n" "{\n" " gl_Position = ftransform();\n" - " gl_TexCoord[0].xy = gl_MultiTexCoord0.xy/100 + texgenscroll.xy;\n" // added /100 here - " gl_TexCoord[1].xy = gl_MultiTexCoord1.xy/100 * 3.051851e-05;\n" + " gl_TexCoord[0].xy = gl_MultiTexCoord0.xy/100.0 + texgenscroll.xy;\n" // added /100 here + " gl_TexCoord[1].xy = gl_MultiTexCoord1.xy/100.0 * 3.051851e-05;\n" "}\n"; const char *fragmentShader = "uniform vec4 colorparams;\n" "uniform sampler2D diffusemap, lightmap;\n" |