mesa: fix the checks in _mesa_InvalidateBuffer(Sub)Data
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 9 Jan 2016 22:51:39 +0000 (17:51 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 14 Jan 2016 14:39:22 +0000 (09:39 -0500)
commit53c77494aa7362d390b09351f831713519064ccc
tree4637237f73f1312f51f241cf5c687f301f2767e9
parentcbcdef7b40f0fbac8d8a73c537808742f44a4389
mesa: fix the checks in _mesa_InvalidateBuffer(Sub)Data

Change the check to be in line with what the quoted spec fragment says.

I have sent out a piglit test for this as well.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/bufferobj.c