mirror of https://github.com/mpv-player/mpv
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:
parent
19578c6960
commit
7a6d302f42
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue