|
|
@@ -476,7 +476,7 @@ bool Graphics::SetMode(int width, int height, bool fullscreen, bool borderless,
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- LOGERROR("Could not open window");
|
|
|
+ LOGERRORF("Could not create window, root cause: '%s'", SDL_GetError());
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
@@ -2417,7 +2417,7 @@ void Graphics::Restore()
|
|
|
|
|
|
if (!impl_->context_)
|
|
|
{
|
|
|
- LOGERROR("Could not create OpenGL context");
|
|
|
+ LOGERRORF("Could not create OpenGL context, root cause '%s'", SDL_GetError());
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -2429,7 +2429,7 @@ void Graphics::Restore()
|
|
|
GLenum err = glewInit();
|
|
|
if (GLEW_OK != err)
|
|
|
{
|
|
|
- LOGERROR("Could not initialize OpenGL extensions");
|
|
|
+ LOGERRORF("Could not initialize OpenGL extensions, root cause: '%s'", glewGetErrorString(err));
|
|
|
return;
|
|
|
}
|
|
|
|