mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
mesa: do not modify args when errors with GetProgramResourceName
Original purpose of these lines was to be more friendly against GUI tools using the extension. However conformance suite explicitly checks that buffers are not modified in error conditions. Fixes: ES31-CTS.program_interface_query.buff-length Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
This commit is contained in:
parent
18c5cdb943
commit
784bea5a38
1 changed files with 0 additions and 6 deletions
|
|
@ -274,12 +274,6 @@ _mesa_GetProgramResourceName(GLuint program, GLenum programInterface,
|
|||
_mesa_lookup_shader_program_err(ctx, program,
|
||||
"glGetProgramResourceName");
|
||||
|
||||
/* Set user friendly return values in case of errors. */
|
||||
if (name)
|
||||
*name = '\0';
|
||||
if (length)
|
||||
*length = 0;
|
||||
|
||||
if (!shProg || !name)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue