mesa: fix error handling in _mesa_TransformFeedbackVaryings
authorTapani Pälli <tapani.palli@intel.com>
Mon, 10 Oct 2016 06:49:36 +0000 (09:49 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 11 Oct 2016 04:44:33 +0000 (07:44 +0300)
commitfc8b358bd6971cc858bb06bdb4eed92656a6d8bd
tree6c8d7072ea7b4e10b08433c12397026227760d27
parentd11a63d6e69298f34bb08334f637c100f6989ca7
mesa: fix error handling in _mesa_TransformFeedbackVaryings

Patch changes function to use _mesa_lookup_shader_program_err both
in TransformFeedbackVaryings and GetTransformFeedbackVarying that
handles errors correctly for invalid values of shader program.

Fixes following dEQP test:
   dEQP-GLES31.functional.debug.negative_coverage.get_error.shader.transform_feedback_varyings

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98135
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/main/transformfeedback.c