PDA

View Full Version : glGetProgramBinary return zero length binary



Gessos Paul
09-28-2014, 09:21 AM
I have ATI Radeon HD 4800 Series which supports OpenGL 3.3 with extension GL_ARB_get_program_binary.

When I am trying to retrieve binary code from a freshly compiled program, I get zero size.
What is the problem?

Procedure:


Trying to load previous existed binary code of program
If binary exist, glProgramBinary() and GL_LINK_STATUS == GL_TRUE then end.
Load, Compile with success, attach shaders to program.
glProgramParameteri(program, GL_PROGRAM_BINARY_RETRIEVABLE_HINT, GL_TRUE);
Link program.
If GL_LINK_STATUS == GL_FALSE then throw.
GL_PROGRAM_BINARY_LENGTH returns 0
glGetError() returns 0.