I am using the ARB_debug_output
extension. The driver gives me this warning:
Program/shader state performance warning: Vertex shader in program 16 is being recompiled based on GL state.
So, I tried setting various GL state before I compile my shader, including:
GL_BLEND
GL_CULL_FACE
GL_DEPTH_TEST
- polygon-offset
- blendfunc
...but it still recompiles upon first draw.
What are the typical pieces of state that could cause the driver to recompile a vertex shader?