From c8e64830f90c6502d17d47612f15dcc9d8198c2c Mon Sep 17 00:00:00 2001 From: Andrew Talbot <Andrew.Talbot@talbotville.com> Date: Sat, 25 Nov 2006 18:25:15 +0000 Subject: [PATCH] winex11.drv: Cast-qual warnings fix. --- dlls/winex11.drv/opengl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index 149b11d1bc5..146a668ddf1 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -342,7 +342,7 @@ static BOOL has_opengl(void) return FALSE; } -#define LOAD_FUNCPTR(f) if((p##f = (void*)pglXGetProcAddressARB((unsigned char*)#f)) == NULL) goto sym_not_found; +#define LOAD_FUNCPTR(f) if((p##f = (void*)pglXGetProcAddressARB((const unsigned char*)#f)) == NULL) goto sym_not_found; /* GLX 1.0 */ LOAD_FUNCPTR(glXChooseVisual) LOAD_FUNCPTR(glXCreateContext) @@ -1404,7 +1404,7 @@ PROC X11DRV_wglGetProcAddress(LPCSTR lpszProc) /* Check the table of WGL extensions to see if we need to return a WGL extension * or a function pointer to a native OpenGL function. */ if(strncmp(lpszProc, "wgl", 3) != 0) { - return pglXGetProcAddressARB((GLubyte*)lpszProc); + return pglXGetProcAddressARB((const GLubyte*)lpszProc); } else { TRACE("('%s'):%*s", lpszProc, padding, " "); for (i = 0; i < WineGLExtensionListSize; ++i) { -- GitLab