mirror of
https://github.com/SFML/SFML.git
synced 2024-11-29 06:41:05 +08:00
Added error checking in initialization of GLEW
This commit is contained in:
parent
bb6ed5dd29
commit
2a546411d5
@ -112,8 +112,15 @@ void EnsureGlewInit()
|
|||||||
static bool initialized = false;
|
static bool initialized = false;
|
||||||
if (!initialized)
|
if (!initialized)
|
||||||
{
|
{
|
||||||
glewInit();
|
GLenum status = glewInit();
|
||||||
initialized = true;
|
if (status == GLEW_OK)
|
||||||
|
{
|
||||||
|
initialized = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Err() << "Failed to initialize GLEW, " << glewGetErrorString(status) << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user