diff --git a/Engine/source/gfx/gl/sdl/gfxGLDevice.sdl.cpp b/Engine/source/gfx/gl/sdl/gfxGLDevice.sdl.cpp index a74be76ca..25c343cb0 100644 --- a/Engine/source/gfx/gl/sdl/gfxGLDevice.sdl.cpp +++ b/Engine/source/gfx/gl/sdl/gfxGLDevice.sdl.cpp @@ -90,6 +90,13 @@ void GFXGLDevice::enumerateAdapters( Vector &adapterList ) 480, // height, in pixels 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_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);