summaryrefslogtreecommitdiff
path: root/glx
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-09-23 11:19:00 +1000
committerAdam Jackson <ajax@redhat.com>2015-09-23 17:08:44 -0400
commit6da3f5d04f6a1cda0c858280f9561f9fbc323275 (patch)
tree1509845c8a9dad2288513356a1bf052e5e4cb770 /glx
parent5e9457c41c05b65da7e39bd8944ec761479f19dd (diff)
glx: fix regression with copy sub buffer disappearing
So copy sub buffer isn't a core extensions it's a driver extension which means we are using totally the wrong interface to query for it here, which means bad things happen when you roll out this code, for instance MESA_copy_sub_buffer stops working. This is just the hack I'm sticking in Fedora to avoid the regression for now, but hopefully will inspire us. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'glx')
-rw-r--r--glx/glxdriswrast.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/glx/glxdriswrast.c b/glx/glxdriswrast.c
index 9add2a13f..e8e53bfdb 100644
--- a/glx/glxdriswrast.c
+++ b/glx/glxdriswrast.c
@@ -396,6 +396,9 @@ initializeExtensions(__GLXDRIscreen * screen)
const __DRIextension **extensions;
int i;
+ __glXEnableExtension(screen->glx_enable_bits, "GLX_MESA_copy_sub_buffer");
+ LogMessage(X_INFO, "AIGLX: enabled GLX_MESA_copy_sub_buffer\n");
+
if (screen->swrast->base.version >= 3) {
__glXEnableExtension(screen->glx_enable_bits,
"GLX_ARB_create_context");
@@ -416,8 +419,6 @@ initializeExtensions(__GLXDRIscreen * screen)
if (strcmp(extensions[i]->name, __DRI_COPY_SUB_BUFFER) == 0) {
screen->copySubBuffer =
(const __DRIcopySubBufferExtension *) extensions[i];
- __glXEnableExtension(screen->glx_enable_bits,
- "GLX_MESA_copy_sub_buffer");
}
if (strcmp(extensions[i]->name, __DRI_TEX_BUFFER) == 0) {