mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 05:50:14 +01:00
mesa: don't return errors for gl_* GetFragData* queries
There is nothing in the spec about this. BindFragDataLocation* is
supposed to return an error, but not Get.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5221
Fixes: 59012c3133 ("mesa: Implement glGetFragDataLocation")
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12333>
This commit is contained in:
parent
07cc5fd893
commit
bce19b3a77
1 changed files with 0 additions and 12 deletions
|
|
@ -409,12 +409,6 @@ _mesa_GetFragDataIndex(GLuint program, const GLchar *name)
|
|||
if (!name)
|
||||
return -1;
|
||||
|
||||
if (strncmp(name, "gl_", 3) == 0) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION,
|
||||
"glGetFragDataIndex(illegal name)");
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Not having a fragment shader is not an error.
|
||||
*/
|
||||
if (shProg->_LinkedShaders[MESA_SHADER_FRAGMENT] == NULL)
|
||||
|
|
@ -444,12 +438,6 @@ _mesa_GetFragDataLocation(GLuint program, const GLchar *name)
|
|||
if (!name)
|
||||
return -1;
|
||||
|
||||
if (strncmp(name, "gl_", 3) == 0) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION,
|
||||
"glGetFragDataLocation(illegal name)");
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Not having a fragment shader is not an error.
|
||||
*/
|
||||
if (shProg->_LinkedShaders[MESA_SHADER_FRAGMENT] == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue