From f95645c6f70019316f8ad77b7beb84530fc0505f Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 22 Mar 2016 14:37:19 -0400 Subject: glx: Don't enable EXT_texture_from_pixmap unconditionally Not all backend servers implement this. Those that don't happen to not use __glXInitExtensionEnableBits, but we'd like that to change, so fix it up before we switch them over. Reviewed-by: Eric Anholt Reviewed-by: Emil Velikov Signed-off-by: Adam Jackson --- glx/extension_string.c | 2 +- glx/glxdri2.c | 3 ++- glx/glxdriswrast.c | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/glx/extension_string.c b/glx/extension_string.c index 616c7932e..30c341646 100644 --- a/glx/extension_string.c +++ b/glx/extension_string.c @@ -86,7 +86,7 @@ static const struct extension_info known_glx_extensions[] = { { GLX(EXT_framebuffer_sRGB), VER(0,0), N, }, { GLX(EXT_import_context), VER(0,0), Y, }, { GLX(EXT_stereo_tree), VER(0,0), N, }, - { GLX(EXT_texture_from_pixmap), VER(0,0), Y, }, + { GLX(EXT_texture_from_pixmap), VER(0,0), N, }, { GLX(EXT_visual_info), VER(0,0), Y, }, { GLX(EXT_visual_rating), VER(0,0), Y, }, diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 2a7c1e30e..c56a37678 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -909,7 +909,8 @@ initializeExtensions(__GLXDRIscreen * screen) if (strcmp(extensions[i]->name, __DRI_TEX_BUFFER) == 0) { screen->texBuffer = (const __DRItexBufferExtension *) extensions[i]; - /* GLX_EXT_texture_from_pixmap is always enabled. */ + __glXEnableExtension(screen->glx_enable_bits, + "GLX_EXT_texture_from_pixmap"); LogMessage(X_INFO, "AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects\n"); } diff --git a/glx/glxdriswrast.c b/glx/glxdriswrast.c index cb57e9a9a..84fd3a1c7 100644 --- a/glx/glxdriswrast.c +++ b/glx/glxdriswrast.c @@ -426,7 +426,8 @@ initializeExtensions(__GLXDRIscreen * screen) if (strcmp(extensions[i]->name, __DRI_TEX_BUFFER) == 0) { screen->texBuffer = (const __DRItexBufferExtension *) extensions[i]; - /* GLX_EXT_texture_from_pixmap is always enabled. */ + __glXEnableExtension(screen->glx_enable_bits, + "GLX_EXT_texture_from_pixmap\n"); } #ifdef __DRI2_FLUSH_CONTROL -- cgit v1.2.3