mesa: Returns a GL_INVALID_VALUE error if num of texs in glDeleteTextures is negative
authorEduardo Lima Mitev <elima@igalia.com>
Thu, 11 Dec 2014 22:34:20 +0000 (23:34 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 13 Jan 2015 11:19:32 +0000 (12:19 +0100)
commit038894c7cb8fd71fc7e5b6e4b64a93cb8613adb3
treed2c7a44671f968d197e2fd090c9950028f8d75ba
parent2012f62d4abb6633b5329235194d23692f86b17b
mesa: Returns a GL_INVALID_VALUE error if num of texs in glDeleteTextures is negative

Per GLES3 manual for glDeleteTextures
<https://www.khronos.org/opengles/sdk/docs/man3/html/glDeleteTextures.xhtml>,
GL_INVALID_VALUE is generated if n is negative.

Fixes 1 dEQP test:
* dEQP-GLES3.functional.negative_api.texture.deletetextures

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