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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user