From 3fcfd69fec379b121bb6a89446f3df36e0dab5c1 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Wed, 24 Mar 2010 22:53:23 -0700 Subject: progs/glsl: Fix vsraytrace GLSL compilation error. Fixes the following GLSL error on Mac OS X. '=' : assigning non-constant to 'const 3-component vector of float' --- progs/glsl/vsraytrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'progs') diff --git a/progs/glsl/vsraytrace.c b/progs/glsl/vsraytrace.c index d7726c787b..962b1bdb4c 100644 --- a/progs/glsl/vsraytrace.c +++ b/progs/glsl/vsraytrace.c @@ -202,7 +202,7 @@ static const char* vsSource = "void main() \n" "{ \n" " const vec3 cameraPos = vec3(0,0,3); \n" - " const vec3 rayDir = normalize(vec3(gl_Vertex.x, gl_Vertex.y, -1.0) * rot);\n" + " vec3 rayDir = normalize(vec3(gl_Vertex.x, gl_Vertex.y, -1.0) * rot);\n" " Ray ray = Ray(cameraPos, rayDir); \n" " gl_Position = gl_Vertex; \n" " gl_FrontColor = trace1(ray); \n" -- cgit v1.2.3