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

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

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

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