From f387b0fa6b3ab5983cb720c23e75567a6820cfa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Tue, 1 Oct 2013 17:39:38 +0000 Subject: [PATCH] [OPENGL32] - Do not spam debug logs with wrong calls to wglGetProcAddress svn path=/trunk/; revision=60499 --- reactos/dll/opengl/opengl32/swimpl.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/reactos/dll/opengl/opengl32/swimpl.c b/reactos/dll/opengl/opengl32/swimpl.c index e1aa509cc0b..195401836c8 100644 --- a/reactos/dll/opengl/opengl32/swimpl.c +++ b/reactos/dll/opengl/opengl32/swimpl.c @@ -102,10 +102,18 @@ sw_get_string( struct gl_context *ctx, GLenum name ) { (void) ctx; if(name == GL_RENDERER) - return (const GLubyte *) "ReactOS Software Implementation"; + { + static const GLubyte renderer[] = { 'R','e','a','c','t','O','S',' ', + 'S','o','f','t','w','a','r','e',' ', + 'I','m','p','l','e','m','e','n','t','a','t','i','o','n',0 }; + return renderer; + } /* Don't claim to support the fancy extensions that mesa supports, they will be slow anyway */ if(name == GL_EXTENSIONS) - return (const GLubyte *)""; + { + static const GLubyte extensions[] = { 0 }; + return extensions; + } return NULL; } @@ -595,7 +603,7 @@ BOOL sw_DeleteContext(DHGLRC dhglrc) PROC sw_GetProcAddress(LPCSTR name) { /* We don't support any extensions */ - FIXME("Asking for proc address %s, returning NULL.\n", name); + WARN("Asking for proc address %s, returning NULL.\n", name); return NULL; }