mesa: fix check for dummy renderbuffer in _mesa_FramebufferRenderbufferEXT()
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Thu, 3 Apr 2014 06:30:06 +0000 (08:30 +0200)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 17 Apr 2014 06:00:40 +0000 (23:00 -0700)
commit9927180714662456ff7b895221f67112f2567a53
tree41fa4c65d224e7015679fec35769ac7fcaf4a849
parent42a26cb5e441a01d5288b299980f23affaad53fe
mesa: fix check for dummy renderbuffer in _mesa_FramebufferRenderbufferEXT()

According to the spec:
<renderbuffertarget> must be RENDERBUFFER and <renderbuffer>
should be set to the name of the renderbuffer object to be
attached to the framebuffer.  <renderbuffer> must be either
zero or the name of an existing renderbuffer object of type
<renderbuffertarget>, otherwise an INVALID_OPERATION error is
generated.

This patch changes the previous returned GL_INVALID_VALUE to
GL_INVALID_OPERATION.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76894

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
src/mesa/main/fbobject.c