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:06:30 +0000 (10:06 -0800)
commit9462b8447864c754252cd2580c9e1e4d36d5cc63
treea453cf02bd9458bbf66d1bcbb16dbe07b222f5a0
parent27915708ed4519cc5606e81fb789e8427501f355
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>
src/mesa/drivers/dri/i965/gen6_hiz.c