diff options
author | Eric Anholt <eric@anholt.net> | 2015-06-19 17:26:46 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2015-06-29 21:43:35 -0700 |
commit | e8fc929d4a140666420a64d592371f5d3eb10cca (patch) | |
tree | 632e77bdfa944e996c3270ed44a4334eaf109905 | |
parent | 4fc4cde0ce7d1a35bab3b3bbd787d688cd415d78 (diff) |
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>
-rw-r--r-- | glamor/glamor.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 = |