ReactOS spefify change. our gdi32.dll does not have all opengl32 api yet.

so we need load opengl32.dll to solv this issue.  

svn path=/trunk/; revision=30767
This commit is contained in:
Magnus Olsen 2007-11-25 22:48:35 +00:00
parent 36f131d36e
commit 462d823f7f

View file

@ -2825,7 +2825,10 @@ BOOL InitAdapters(void) {
#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
}