more stderr messages when gl3w fails to load
This commit is contained in:
parent
b734249df2
commit
5eb5039d38
@ -53,12 +53,22 @@ static bool Initialize_OpenGL()
|
||||
{
|
||||
if (gl3wInit() != 0)
|
||||
{
|
||||
std::cerr << "Failed to initialize gl3w." << std::endl;
|
||||
|
||||
/* Failed to gl3wInit() */
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!gl3wIsSupported(3, 0))
|
||||
{
|
||||
std::cerr << "Error: OpenGL 3.0 is required." << std::endl;
|
||||
|
||||
std::cerr << "OpenGL version: "
|
||||
<< glGetString(GL_VERSION)
|
||||
<< ", GLSL: "
|
||||
<< glGetString(GL_SHADING_LANGUAGE_VERSION)
|
||||
<< std::endl;
|
||||
|
||||
/* OpenGL 3.0 is not supported */
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user