mesa: do not modify args when errors with GetProgramResourceName
authorTapani Pälli <tapani.palli@intel.com>
Tue, 4 Aug 2015 08:09:35 +0000 (11:09 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 5 Aug 2015 04:26:10 +0000 (07:26 +0300)
commit784bea5a38c219a5ab587ff1ddce8879d4f7dce1
tree918403560da4cbeda2ed7f955888fa986dfce058
parent18c5cdb9433b472d9aad13175295a848bce03185
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>
src/mesa/main/program_resource.c