Mercurial > mplayer.hg
comparison libvo/gl_common.c @ 25953:606adc08ee6d
Try harder to find OpenGL functions on Windows.
author | reimar |
---|---|
date | Mon, 11 Feb 2008 19:37:47 +0000 |
parents | fa24feceb3f9 |
children | 802c489f77f0 |
comparison
equal
deleted
inserted
replaced
25952:bb89f92affff | 25953:606adc08ee6d |
---|---|
1435 * getProcAddress | 1435 * getProcAddress |
1436 * \param procName name of function to look up | 1436 * \param procName name of function to look up |
1437 * \return function pointer returned by wglGetProcAddress | 1437 * \return function pointer returned by wglGetProcAddress |
1438 */ | 1438 */ |
1439 static void *w32gpa(const GLubyte *procName) { | 1439 static void *w32gpa(const GLubyte *procName) { |
1440 return wglGetProcAddress(procName); | 1440 HMODULE oglmod; |
1441 void *res = wglGetProcAddress(procName); | |
1442 if (res) return res; | |
1443 oglmod = GetModuleHandle("opengl32.dll"); | |
1444 return GetProcAddress(oglmod, procName); | |
1441 } | 1445 } |
1442 | 1446 |
1443 int setGlWindow(int *vinfo, HGLRC *context, HWND win) | 1447 int setGlWindow(int *vinfo, HGLRC *context, HWND win) |
1444 { | 1448 { |
1445 int new_vinfo; | 1449 int new_vinfo; |