From b3fa60edc412e4c52bc6fa0346217eed0ebc98e3 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 6 Nov 2017 16:07:41 -0500 Subject: [PATCH] glx: Fix typos that break GLX_ARB_context_flush_control MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The trailing \n are just wrong here, __glXEnableExtension wants a string without them. Signed-off-by: Adam Jackson Reviewed-by: Michel Dänzer Reviewed-by: Emil Velikov (cherry picked from commit fd0eafb18426da14601d5c0d0a50092c49a7aff8) --- glx/glxdri2.c | 2 +- glx/glxdriswrast.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 484b4aeab..8f6c3ab6a 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -901,7 +901,7 @@ initializeExtensions(__GLXscreen * screen) #ifdef __DRI2_FLUSH_CONTROL if (strcmp(extensions[i]->name, __DRI2_FLUSH_CONTROL) == 0) { __glXEnableExtension(screen->glx_enable_bits, - "GLX_ARB_context_flush_control\n"); + "GLX_ARB_context_flush_control"); } #endif diff --git a/glx/glxdriswrast.c b/glx/glxdriswrast.c index ed0469fd6..a9472cd4e 100644 --- a/glx/glxdriswrast.c +++ b/glx/glxdriswrast.c @@ -413,7 +413,7 @@ initializeExtensions(__GLXscreen * screen) #ifdef __DRI2_FLUSH_CONTROL if (strcmp(extensions[i]->name, __DRI2_FLUSH_CONTROL) == 0) { __glXEnableExtension(screen->glx_enable_bits, - "GLX_ARB_context_flush_control\n"); + "GLX_ARB_context_flush_control"); } #endif