# HG changeset patch # User reimar # Date 1202758667 0 # Node ID 606adc08ee6d8d1df540d5e19a54ddf00d21b0bf # Parent bb89f92affff06e3af2ecfd72fa3a8ad821c2e0f Try harder to find OpenGL functions on Windows. diff -r bb89f92affff -r 606adc08ee6d libvo/gl_common.c --- 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)