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 e664650..7f5fce7 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;
    }