Browse Source

wgl: only load opengl32.dll from %windows%\system32

pull/176/head
Steve Lhomme 2 years ago
parent
commit
07ac5669a0
  1. 2
      modules/video_output/win32/wgl.c

2
modules/video_output/win32/wgl.c

@ -175,7 +175,7 @@ static int Open(vlc_gl_t *gl, unsigned width, unsigned height,
sys->hvideownd = wnd->handle.hwnd;
sys->hGLDC = GetDC(sys->hvideownd);
sys->hOpengl = LoadLibraryA("opengl32.dll");
sys->hOpengl = LoadLibraryExA("opengl32.dll", NULL, LOAD_LIBRARY_SEARCH_SYSTEM32);
if (sys->hGLDC == NULL)
{
msg_Err(gl, "Could not get the device context");

Loading…
Cancel
Save