More descriptive OpenGL error.

This commit is contained in:
Ben Vanik 2015-06-22 21:49:02 -07:00
parent 54b94ac22f
commit b46406ee4b
2 changed files with 11 additions and 1 deletions

View File

@ -115,6 +115,13 @@ bool GLContext::Initialize(HWND hwnd) {
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()) {
// Clearing errors.
}

View File

@ -60,7 +60,10 @@ bool WGLControl::Create() {
}
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;
}