mesa/src
Matt Turner 11cea47246 mesa/uniform_query: Don't write to *params if there is an error
The GL 3.1 and ES 3.0 specs say of glGetActiveUniformsiv:
   "If an error occurs, nothing will be written to params."

So, make a pass through the indices and check that they're valid before
the pass that actually writes to params. Checking pname happens on the
first iteration of the second loop.

Fixes es3conform's getactiveuniformsiv_for_nonexistent_uniform_indices
test.

NOTE: This is a candidate for the 9.0 branch.
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-12-13 09:53:28 -08:00
..
egl egl/wayland: Dispatch the event queue before get_buffers 2012-11-30 17:05:50 -05:00
gallium softpipe: remove unused corner0 variable 2012-12-12 08:51:19 -07:00
gbm gbm: Use the kms dumb ioctls for cursor instead of libkms 2012-10-21 13:00:49 -04:00
getopt
glsl mesa: Use the new hash table for the variable refcount visitor. 2012-12-07 14:46:18 -08:00
glx glx/dri2: set the __DRI2_FLUSH_DRAWABLE flag where it should be set 2012-12-07 14:19:28 +01:00
gtest build: Fix gtest out-of-tree build 2012-08-14 10:54:39 -07:00
mapi build: Fix GLES linkage without libglapi 2012-12-07 09:21:44 +01:00
mesa mesa/uniform_query: Don't write to *params if there is an error 2012-12-13 09:53:28 -08:00
.gitignore automake: Convert src/Makefile to automake. 2012-06-11 09:28:00 -07:00
Makefile.am automake: Convert src/Makefile to automake. 2012-06-11 09:28:00 -07:00
SConscript Remove libGLU 2012-08-31 10:58:15 -07:00