Author: greatlrd Date: Mon Nov 26 01:48:35 2007 New Revision: 30767
URL: http://svn.reactos.org/svn/reactos?rev=30767&view=rev Log: ReactOS spefify change. our gdi32.dll does not have all opengl32 api yet. so we need load opengl32.dll to solv this issue.
Modified: trunk/reactos/dll/directx/wine/wined3d/directx.c
Modified: trunk/reactos/dll/directx/wine/wined3d/directx.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/wine/wined3d/di... ============================================================================== --- trunk/reactos/dll/directx/wine/wined3d/directx.c (original) +++ trunk/reactos/dll/directx/wine/wined3d/directx.c Mon Nov 26 01:48:35 2007 @@ -2825,7 +2825,10 @@ #else #define USE_GL_FUNC(pfn) pfn = (void*)pwglGetProcAddress(#pfn); /* To bypass the opengl32 thunks load wglGetProcAddress from gdi32 (glXGetProcAddress wrapper) instead of opengl32's */ - mod_gl = GetModuleHandleA("gdi32.dll"); + + /* ReactOS hack, we do not have wglGetProcAddress implement in gdi32.dll yet, */ + mod_gl = GetModuleHandleA("opengl32.dll"); + #endif }