changeset 25953:606adc08ee6d

Try harder to find OpenGL functions on Windows.
author reimar
date Mon, 11 Feb 2008 19:37:47 +0000
parents bb89f92affff
children 0b0d71ca6a92
files libvo/gl_common.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/gl_common.c	Mon Feb 11 19:01:34 2008 +0000
+++ b/libvo/gl_common.c	Mon Feb 11 19:37:47 2008 +0000
@@ -1437,7 +1437,11 @@
  * \return function pointer returned by wglGetProcAddress
  */
 static void *w32gpa(const GLubyte *procName) {
-  return wglGetProcAddress(procName);
+  HMODULE oglmod;
+  void *res = wglGetProcAddress(procName);
+  if (res) return res;
+  oglmod = GetModuleHandle("opengl32.dll");
+  return GetProcAddress(oglmod, procName);
 }
 
 int setGlWindow(int *vinfo, HGLRC *context, HWND win)