More descriptive OpenGL error.
This commit is contained in:
parent
54b94ac22f
commit
b46406ee4b
|
@ -115,6 +115,13 @@ bool GLContext::Initialize(HWND hwnd) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XELOGI("Successfully created OpenGL context:");
|
||||||
|
XELOGI(" GL_VENDOR: %s", glGetString(GL_VENDOR));
|
||||||
|
XELOGI(" GL_VERSION: %s", glGetString(GL_VERSION));
|
||||||
|
XELOGI(" GL_RENDERER: %s", glGetString(GL_RENDERER));
|
||||||
|
XELOGI(" GL_SHADING_LANGUAGE_VERSION: %s",
|
||||||
|
glGetString(GL_SHADING_LANGUAGE_VERSION));
|
||||||
|
|
||||||
while (glGetError()) {
|
while (glGetError()) {
|
||||||
// Clearing errors.
|
// Clearing errors.
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,10 @@ bool WGLControl::Create() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!context_.Initialize(hwnd_)) {
|
if (!context_.Initialize(hwnd_)) {
|
||||||
XEFATAL("Unable to initialize GL context");
|
XEFATAL(
|
||||||
|
"Unable to initialize GL context. Xenia requires OpenGL 4.5. Ensure "
|
||||||
|
"you have the latest drivers for your GPU and that it supports OpenGL "
|
||||||
|
"4.5.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue