Fixed crash if OpenGL couldn't init
Former-commit-id: 32feaaa180df7f9f4c02ec5f593166df15aae234
This commit is contained in:
parent
4352083c4b
commit
f681587c63
|
|
@ -500,8 +500,6 @@ bool NzRenderer::Initialize()
|
||||||
if (!NzOpenGL::Initialize())
|
if (!NzOpenGL::Initialize())
|
||||||
{
|
{
|
||||||
NazaraError("Failed to initialize OpenGL");
|
NazaraError("Failed to initialize OpenGL");
|
||||||
Uninitialize();
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue