GLSL woes

Today I started messing around with glsl. I got it up and running (based off the “Sample Usage” in the extension specs) and wrote a really simple vertex shader.

This was in Debug mode.

However, when I compile in release mode, I get compiler errors

 (4) : error C0000: syntax error, unexpected ']' at token "]"
(4) : error c0501: type name expected at token "]" 

However, if I change to Multithreaded Debug DLL for the release build (as opposed to Multithreaded DLL) it works fine. (MSVC++ .NET 2002)

Here’s the shader:

 void main(void) 
{
	gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
} 

As you can see, nothing fancy…

i had a problem simular to that a while back, i found that zeroing out the memory i was loading the shader into fixed it.

Nope, still got problems :frowning:

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.