View Full Version : AMD: Varying array and geometry shader
06-13-2011, 12:09 PM
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.
06-14-2011, 12:59 AM
Could you please provide the vertex shader? Thanks.
06-14-2011, 09:10 AM
#version 330 core
layout(location = 0) in vec2 Position;
out float test;
gl_Position = vec4(Position, 0.0, 1.0);
test = 1.0;
test = 1.0;
06-14-2011, 09:51 AM
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. :)
06-15-2011, 12:47 AM
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...
06-20-2011, 09:02 AM
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.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.