mirror of
https://github.com/reactos/reactos.git
synced 2024-10-03 16:05:37 +00:00
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:
parent
36f131d36e
commit
462d823f7f
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue