summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-02-11 19:37:47 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-02-11 19:37:47 +0000
commit7a6d302f4247acbf5e30fa24f6a065852c4f35d1 (patch)
treeb737998460d4d9711a1b2fea5c040e28b876be0e /libvo
parent19578c6960a1e80b0f5890758acbe147e1cc2b8d (diff)
downloadmpv-7a6d302f4247acbf5e30fa24f6a065852c4f35d1.tar.bz2
mpv-7a6d302f4247acbf5e30fa24f6a065852c4f35d1.tar.xz
Try harder to find OpenGL functions on Windows.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25985 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/gl_common.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c
index e989163064..ed6bc751a1 100644
--- a/libvo/gl_common.c
+++ b/libvo/gl_common.c
@@ -1437,7 +1437,11 @@ void glDrawTex(GLfloat x, GLfloat y, GLfloat w, GLfloat h,
* \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)