[PATCH 4/7] glamor: Use GL_EXT_map_buffer_range if present.
Eric Anholt
eric at anholt.net
Fri Jun 19 19:09:38 PDT 2015
We were only looking for the desktop GL version of the extension, so
GLES2 missed out.
Signed-off-by: Eric Anholt <eric at anholt.net>
---
glamor/glamor.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/glamor/glamor.c b/glamor/glamor.c
index 0378388..935fb74 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 =
--
2.1.4
More information about the xorg-devel
mailing list