1
0
Fork 0

source/Platform/Win32/Win32GLContext.cpp: minor fixes to log strings.

This commit is contained in:
Henrik Hautakoski 2019-12-22 22:04:29 +01:00
parent a39069cdb9
commit 9835082b67
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745

View file

@ -25,11 +25,11 @@ static void ensureExtensionsLoaded(HDC dc)
init = true;
if (!gladLoadWGL(dc, func_loader)) {
Log::error("Win32: Could not load WGL extensions");
Log::error("WGL: Could not load WGL extensions");
}
if (!gladLoaderLoadGL()) {
Log::error("Win32: Could not load OpenGL extensions\n");
Log::error("WGL: Could not load OpenGL extensions");
}
}
}
@ -55,7 +55,7 @@ bool Win32GLContext::create(const PlatformDisplay* display)
// Should have a valid handle here. trigger error.
if (!m_wnd) {
Log::warn("Win32 - Could not create GL context: Invalid display handle\n");
Log::warn("WGL: Could not create GL context: Invalid display handle");
return false;
}
@ -68,7 +68,7 @@ bool Win32GLContext::create(const PlatformDisplay* display)
// Make sure we release all handles.
destroy();
Log::warn("Win32 - Could not create GL context: %s", Win32GetMessage(GetLastError()));
Log::warn("WGL: Could not create GL context: %s", Win32GetMessage(GetLastError()));
return false;
}
return true;