OSDN Git Service

gen6_hiz: Don't bind GL_DRAW_FRAMEBUFFER on GLES
authorNeil Roberts <neil@linux.intel.com>
Wed, 30 Nov 2011 22:29:21 +0000 (22:29 +0000)
committerChad Versace <chad.versace@linux.intel.com>
Fri, 13 Jan 2012 18:08:13 +0000 (10:08 -0800)
commit399b9799de9980b8ebc0ba46304be207b28b7825
tree38d8bf8fc2561298e4c4e61bbe523f05d461311d
parent2c1ee157c7e8526cd9e097ee25d63961d6aaf619
gen6_hiz: Don't bind GL_DRAW_FRAMEBUFFER on GLES

When using Mesa with a GLES API, calling _mesa_FramebufferRenderbuffer
with GL_DRAW_FRAMEBUFFER will report a 'user error' because
get_framebuffer_target validates that this enum from the framebuffer
blit extension is only used on GL. To work around it this patch makes
it use the GL_FRAMEBUFFER enum instead in that case.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43418
Note: This is a candidate for the 8.0 branch.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
(cherry picked from commit 9462b8447864c754252cd2580c9e1e4d36d5cc63)
src/mesa/drivers/dri/i965/gen6_hiz.c