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…