summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderapi.c
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2014-12-21 12:06:23 -0800
committerIan Romanick <ian.d.romanick@intel.com>2015-01-12 12:01:09 +1300
commitf591712efeb9a757379d1e89907e2147749aaf6c (patch)
tree994012ceeba542df3dd7da02fe6dd1b6eacb3dcd /src/mesa/main/shaderapi.c
parent4fd8b3012371a5795a0d272928266c6237e57466 (diff)
downloadexternal_mesa3d-f591712efeb9a757379d1e89907e2147749aaf6c.zip
external_mesa3d-f591712efeb9a757379d1e89907e2147749aaf6c.tar.gz
external_mesa3d-f591712efeb9a757379d1e89907e2147749aaf6c.tar.bz2
mesa: Always generate GL_INVALID_OPERATION in _mesa_GetProgramBinary
There are no binary formats supported, so what are you doing? At least this gives the application developer some feedback about what's going on. The spec gives no guidance about what to do in this scenario. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=87516 Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Acked-by: Leight Bade <leith@mapbox.com>
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r--src/mesa/main/shaderapi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index 656ee11..118e8a7 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -1718,6 +1718,8 @@ _mesa_GetProgramBinary(GLuint program, GLsizei bufSize, GLsizei *length,
}
*length = 0;
+ _mesa_error(ctx, GL_INVALID_OPERATION,
+ "glGetProgramBinary(driver supports zero binary formats)");
(void) binaryFormat;
(void) binary;