source/Platform/Win32/Win32GLContext.cpp: no need to have our own wgl extension loader (fixed in latest glad2)
This commit is contained in:
parent
d8af100691
commit
2c76d3bc87
1 changed files with 1 additions and 8 deletions
|
|
@ -9,13 +9,6 @@
|
||||||
|
|
||||||
namespace sp {
|
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.
|
// Ensure that OpenGL extensions are loaded.
|
||||||
static bool ensureExtensionsLoaded(HDC dc)
|
static bool ensureExtensionsLoaded(HDC dc)
|
||||||
{
|
{
|
||||||
|
|
@ -23,7 +16,7 @@ static bool ensureExtensionsLoaded(HDC dc)
|
||||||
|
|
||||||
if (!init) {
|
if (!init) {
|
||||||
|
|
||||||
if (!gladLoadWGL(dc, func_loader)) {
|
if (!gladLoaderLoadWGL(dc)) {
|
||||||
Log::error("WGL: Could not load WGL extensions");
|
Log::error("WGL: Could not load WGL extensions");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue