summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2012-12-04 18:29:24 -0800
committerIan Romanick <[email protected]>2013-01-11 18:13:53 -0800
commit31ca0c8be33b78b8e7321ac9625d89941d7a5233 (patch)
treedd5be6cace1ecc443a2698a8d284a2fbd0494365
parent50c5fac4e2cb0807c71f5c42d6e8015d636e6eef (diff)
mesa: Add GetProgramiv support for GL_PROGRAM_BINARY_LENGTH
Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r--src/mesa/main/shaderapi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index e664650c88d..7f5fce796e5 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -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;
}