mesa: Add GetProgramiv support for GL_PROGRAM_BINARY_LENGTH
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 5 Dec 2012 02:29:24 +0000 (18:29 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 12 Jan 2013 02:13:53 +0000 (18:13 -0800)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/shaderapi.c

index e664650c88d5ab919f4fdcc158c348d01f4a3f18..7f5fce796e5654da9c6aed609cf7c4a0809e5f64 100644 (file)
@@ -595,6 +595,9 @@ get_programiv(struct gl_context *ctx, GLuint program, GLenum pname, GLint *param
 
       *params = shProg->BinaryRetreivableHint;
       return;
+   case GL_PROGRAM_BINARY_LENGTH:
+      *params = 0;
+      return;
    default:
       break;
    }