summaryrefslogtreecommitdiff
path: root/Source/Core/Common/GL/GLInterface/WGL.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/GL/GLInterface/WGL.cpp')
-rw-r--r--Source/Core/Common/GL/GLInterface/WGL.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/Common/GL/GLInterface/WGL.cpp b/Source/Core/Common/GL/GLInterface/WGL.cpp
index c6fa90ebd3..c0a1266804 100644
--- a/Source/Core/Common/GL/GLInterface/WGL.cpp
+++ b/Source/Core/Common/GL/GLInterface/WGL.cpp
@@ -73,9 +73,7 @@ bool cInterfaceWGL::Create(void *window_handle, bool core)
m_window_handle = window_handle_reified;
-#ifdef _WIN32
dllHandle = LoadLibrary(TEXT("OpenGL32.dll"));
-#endif
PIXELFORMATDESCRIPTOR pfd = // pfd Tells Windows How We Want Things To Be
{
@@ -174,6 +172,7 @@ void cInterfaceWGL::Shutdown()
ERROR_LOG(VIDEO, "Attempt to release device context failed.");
hDC = nullptr;
}
+ FreeLibrary(dllHandle);
}