Try harder to find OpenGL functions on Windows.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25985 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2008-02-11 19:37:47 +00:00
parent 19578c6960
commit 7a6d302f42
1 changed files with 5 additions and 1 deletions

View File

@ -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)