From 03af36ba64df15e35e6f842338aef2f9b9d92d93 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 8 Apr 2015 19:52:15 +0200 Subject: [PATCH] (WGL) Go through dylib_load --- gfx/drivers_context/wgl_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/drivers_context/wgl_ctx.c b/gfx/drivers_context/wgl_ctx.c index 9ebfdf2ee5..ec05e9bfaa 100644 --- a/gfx/drivers_context/wgl_ctx.c +++ b/gfx/drivers_context/wgl_ctx.c @@ -111,7 +111,7 @@ static void create_gl_context(HWND hwnd) bool debug = global->system.hw_render_callback.debug_context; #ifdef _WIN32 - dll_handle = LoadLibrary("OpenGL32.dll"); + dll_handle = (HINSTANCE)dylib_load("OpenGL32.dll"); #endif g_hdc = GetDC(hwnd);