Skip to content
Snippets Groups Projects
Commit 5e5dbb5a authored by Philip Trettner's avatar Philip Trettner
Browse files

Added workaround for drivers that don't support debug contices

parent 12f6adb7
No related branches found
No related tags found
No related merge requests found
......@@ -488,12 +488,21 @@ int GlfwApp::run(int argc, char *argv[])
// Create a windowed mode window and its OpenGL context
mWindow = glfwCreateWindow(mWindowWidth, mWindowHeight, mTitle.c_str(), NULL, NULL);
if (!mWindow)
{
std::cerr << "Unable to create a GLFW window with OpenGL Debug Context. Trying to create one without advanced "
"debugging support."
<< std::endl;
glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GL_FALSE);
mWindow = glfwCreateWindow(mWindowWidth, mWindowHeight, mTitle.c_str(), NULL, NULL);
if (!mWindow)
{
std::cerr << "Unable to create a GLFW window" << std::endl;
glfwTerminate();
return -1;
}
}
// Make the window's context current
glfwMakeContextCurrent(mWindow);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment