glamor: Use GL_EXT_map_buffer_range if present.

We were only looking for the desktop GL version of the extension, so
GLES2 missed out.

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Eric Anholt 2015-06-19 17:26:46 -07:00
parent 4fc4cde0ce
commit e8fc929d4a

View File

@ -454,7 +454,8 @@ glamor_init(ScreenPtr screen, unsigned int flags)
glamor_priv->has_fbo_blit =
epoxy_has_gl_extension("GL_EXT_framebuffer_blit");
glamor_priv->has_map_buffer_range =
epoxy_has_gl_extension("GL_ARB_map_buffer_range");
epoxy_has_gl_extension("GL_ARB_map_buffer_range") ||
epoxy_has_gl_extension("GL_EXT_map_buffer_range");
glamor_priv->has_buffer_storage =
epoxy_has_gl_extension("GL_ARB_buffer_storage");
glamor_priv->has_nv_texture_barrier =