summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2015-08-04 11:09:35 +0300
committerTapani Pälli <[email protected]>2015-08-05 07:26:10 +0300
commit784bea5a38c219a5ab587ff1ddce8879d4f7dce1 (patch)
tree918403560da4cbeda2ed7f955888fa986dfce058 /src/mesa/main
parent18c5cdb9433b472d9aad13175295a848bce03185 (diff)
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 <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/program_resource.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/main/program_resource.c b/src/mesa/main/program_resource.c
index 3864775818c..23d2b4d2da0 100644
--- a/src/mesa/main/program_resource.c
+++ b/src/mesa/main/program_resource.c
@@ -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;