From e8fc929d4a140666420a64d592371f5d3eb10cca Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 19 Jun 2015 17:26:46 -0700 Subject: [PATCH] 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 Reviewed-by: Dave Airlie --- glamor/glamor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glamor/glamor.c b/glamor/glamor.c index 037838840..935fb744a 100644 --- a/glamor/glamor.c +++ b/glamor/glamor.c @@ -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 =