I've been getting intermittent errors compiling a vertex shader, preparing for the first render of a newly created OpenGL context. It's the same vertex shader that usually works, on the same hardware. After glGetShaderiv detects the failure, the info log usually shows this:
Vertex shader failed to compile with the following errors:
Yes, that's the whole thing. The video card is ATI FireGL V7700, and the GL_VERSION string is 3.3.11554 Compatibility Profile Context FireGL. Any clues?
The problem also occurs on an ATI Radeon 3000 with the latest available driver.
If you don't enable
GL_VERTEX_PROGRAM_TWO_SIDE, the problem does not occur.
A Visual C++ project to test the problem is attached. It has a Read Me with steps to reproduce, including the use of Application Verifier to make the problem happen reliably.