diff --git a/source/Platform/Win32/Win32GLContext.cpp b/source/Platform/Win32/Win32GLContext.cpp index a7153b7..475394a 100644 --- a/source/Platform/Win32/Win32GLContext.cpp +++ b/source/Platform/Win32/Win32GLContext.cpp @@ -9,13 +9,6 @@ namespace sp { -// Can't use GLAD's standard loader function because it -// calls wglGetProcAddress without __stdcall -// that results in some runtime exception. -static GLADapiproc func_loader(const char *name) { - return (GLADapiproc) wglGetProcAddress(name); -} - // Ensure that OpenGL extensions are loaded. static bool ensureExtensionsLoaded(HDC dc) { @@ -23,7 +16,7 @@ static bool ensureExtensionsLoaded(HDC dc) if (!init) { - if (!gladLoadWGL(dc, func_loader)) { + if (!gladLoaderLoadWGL(dc)) { Log::error("WGL: Could not load WGL extensions"); return false; }