Chris Robinson : winex11: Don'
t add spaces to the beginning of the wglExtensions list.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Aug 10 07:31:14 CDT 2007
Module: wine
Branch: master
Commit: 7959be38503abe9b25740419482d3b3900cddef2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7959be38503abe9b25740419482d3b3900cddef2
Author: Chris Robinson <chris.kcat at gmail.com>
Date: Thu Aug 9 18:18:48 2007 -0700
winex11: Don't add spaces to the beginning of the wglExtensions list.
---
dlls/winex11.drv/opengl.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 0881198..7ee99b1 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -3003,7 +3003,8 @@ static BOOL glxRequireExtension(const char *requiredExtension)
static void register_extension_string(const char *ext)
{
- strcat(WineGLInfo.wglExtensions, " ");
+ if (WineGLInfo.wglExtensions[0])
+ strcat(WineGLInfo.wglExtensions, " ");
strcat(WineGLInfo.wglExtensions, ext);
TRACE("'%s'\n", ext);
@@ -3016,10 +3017,7 @@ static BOOL register_extension(const WineGLExtension * ext)
assert( WineGLExtensionListSize < MAX_EXTENSIONS );
WineGLExtensionList[WineGLExtensionListSize++] = ext;
- strcat(WineGLInfo.wglExtensions, " ");
- strcat(WineGLInfo.wglExtensions, ext->extName);
-
- TRACE("'%s'\n", ext->extName);
+ register_extension_string(ext->extName);
for (i = 0; ext->extEntryPoints[i].funcName; ++i)
TRACE(" - '%s'\n", ext->extEntryPoints[i].funcName);
More information about the wine-cvs
mailing list