AMD: Varying array and geometry shader

I have a varying variable declared as an array in the vertex shader, I attach this vertex shader and any geometry shader (doesn’t even have to read the varying) in a progam and try to link, but something goes wrong during the glLinkProgram call. Visual Studio reports that it is likely a heap corruption, the call stack shows just ntdll.dll.

Is anyone else experiencing the same?

Win7 64bit, Catalyst 11.5.

Could you please provide the vertex shader? Thanks.


#version 330 core

layout(location = 0) in vec2 Position;
out float test[2];

void main()
{	
	gl_Position = vec4(Position, 0.0, 1.0);

	test[0] = 1.0;
	test[1] = 1.0;
}

I just tried the Catalyst 11.5b hotfix and the program can be now linked without problems.
Looks like there’s a lot of good stuff in this patch release. :slight_smile:

Where you using the debug flag to create the context? AMD drivers has a big issue on that regard where GLSL errors crash the GLSL compiler but only in debug mode…

Yes I was using the debug flag. However I don’t think it was a GLSL error as 11.5b doesn’t report any errors from compiling the shaders or linking the program.

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