Skip to content
Snippets Groups Projects
Commit f591712e authored by Ian Romanick's avatar Ian Romanick
Browse files

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: default avatarIan Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=87516


Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
Acked-by: default avatarLeight Bade <leith@mapbox.com>
parent 4fd8b301
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment