[MPlayer-cvslog] r25985 - trunk/libvo/gl_common.c

reimar subversion at mplayerhq.hu
Mon Feb 11 20:37:47 CET 2008


Author: reimar
Date: Mon Feb 11 20:37:47 2008
New Revision: 25985

Log:
Try harder to find OpenGL functions on Windows.

Modified:
   trunk/libvo/gl_common.c

Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c	(original)
+++ trunk/libvo/gl_common.c	Mon Feb 11 20:37:47 2008
@@ -1437,7 +1437,11 @@ void glDrawTex(GLfloat x, GLfloat y, GLf
  * \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)



More information about the MPlayer-cvslog mailing list