mesa: Returns a GL_INVALID_VALUE error if num of fbos in glDeleteRenderbuffers is...
authorEduardo Lima Mitev <elima@igalia.com>
Thu, 11 Dec 2014 22:34:18 +0000 (23:34 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 13 Jan 2015 11:19:32 +0000 (12:19 +0100)
commit2012f62d4abb6633b5329235194d23692f86b17b
tree5ba80ba43ddcb4f8c5e028dd3ab47f6642d1ecdd
parentf77a473497dad587afb97ea4fda8c13495f5fe69
mesa: Returns a GL_INVALID_VALUE error if num of fbos in glDeleteRenderbuffers is negative

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

Fixes 1 dEQP test:
* dEQP-GLES3.functional.negative_api.buffer.delete_renderbuffers

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