diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2014-12-21 12:06:23 -0800 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-03-06 18:44:52 +0000 |
commit | a369361f9e0b9d781e77a05c85462479b6db9d04 (patch) | |
tree | 122d57f7b2ba7d3dc62619f9ab0a50290e65c56c | |
parent | f1663a5236db78217f735bca73c6796a2fa11e51 (diff) |
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>
(cherry picked from commit f591712efeb9a757379d1e89907e2147749aaf6c)
-rw-r--r-- | src/mesa/main/shaderapi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 1fec416fc5b..0ca4f58dd51 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -1720,6 +1720,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; |