fixed modern GL not enabling

This commit is contained in:
Anselme 2015-09-21 19:05:01 +02:00
parent 9ff1710082
commit 0ae33c3356
2 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,8 @@ void SparrowRenderer::initGL(int width, int height)
modernOpenglAvailable = false; modernOpenglAvailable = false;
fprintf(stderr, "Warning: modern OpenGL not supported!\nEnabling fallback crappy rendering mode\n"); fprintf(stderr, "Warning: modern OpenGL not supported!\nEnabling fallback crappy rendering mode\n");
} }
else
modernOpenglAvailable = true;
std::cout << "OpenGL version " << glGetString(GL_VERSION) << std::endl; std::cout << "OpenGL version " << glGetString(GL_VERSION) << std::endl;
std::cout << "GLSL version " << glGetString(GL_SHADING_LANGUAGE_VERSION) << std::endl; std::cout << "GLSL version " << glGetString(GL_SHADING_LANGUAGE_VERSION) << std::endl;