mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
report if SDL_CreateWindow is unable to create a window at all
This commit is contained in:
parent
06aef7cff3
commit
fc9d767256
1 changed files with 7 additions and 0 deletions
|
|
@ -90,6 +90,13 @@ void GFXGLDevice::enumerateAdapters( Vector<GFXAdapter*> &adapterList )
|
||||||
480, // height, in pixels
|
480, // height, in pixels
|
||||||
SDL_WINDOW_OPENGL | SDL_WINDOW_HIDDEN // flags - see below
|
SDL_WINDOW_OPENGL | SDL_WINDOW_HIDDEN // flags - see below
|
||||||
);
|
);
|
||||||
|
if (!tempWindow)
|
||||||
|
{
|
||||||
|
const char* err = SDL_GetError();
|
||||||
|
Con::printf(err);
|
||||||
|
AssertFatal(0, err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
SDL_ClearError();
|
SDL_ClearError();
|
||||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
|
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue