Vitaly just pointed out that the previous version added some extra spaces. This one fixes that.
Roderick
Hi,
This patch fixes a nasty wglGetProcAddress bug. In case the name of an unknown GL extension (one which is not in wine yet) was passed to wglGetProcAddress it was assumed that it was a WGL extension.
WGL extensions are in the end looked up in winex11.drv. The wglGetProcAddress function in winex11.drv can return WGL extensions but it can also return native GL functions. This ability is used in order to fill the opengl32 thunks (win32 GL -> native GL).
The problem was that unknown extensions were also passed to the winex11.drv code. This resulted that code to look up a native GL functions (the winex11.drv code returns wgl extensions if the function name starts with 'wgl' and else it calls glXGetProcAddress).
In the end this patch makes sure that only functions which start with a 'w' are passed to the winex11.drv code in the other cases a warning is printed that the function wasn't found.
Regards, Roderick Colenbrander