mesa: Update image unit state when glBindImageTexture is called with texture=0.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 21 Jan 2015 14:47:02 +0000 (16:47 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 4 May 2015 14:44:16 +0000 (17:44 +0300)
commitb5854ee72b25078616f04b49004011036fef5a87
tree07e1debb3229aa3f5926730df14f7cc7ee8bdb98
parentb663d6bc6f4de9439107fc6444e436d14e21ee79
mesa: Update image unit state when glBindImageTexture is called with texture=0.

There's no indication in the spec that the image unit state other than the
bound texture object shouldn't be updated when glBindImageTexture() is called
passing the zero texture as argument.  It's very unlikely that any application
would ever have relied on this, but it's easy to get right, and it fixes the
"state" ARB_shader_image_load_store piglit test.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/shaderimage.c