- proper handle pixel format creation errors in Cocoa backend

This commit is contained in:
alexey.lysiuk 2018-05-06 17:53:53 +03:00
parent 7fcefa2ed1
commit 78c06554af

View file

@ -378,11 +378,11 @@ CocoaVideo::CocoaVideo()
if (nil == pixelFormat && NSOpenGLProfileVersion3_2Core == defaultProfile) if (nil == pixelFormat && NSOpenGLProfileVersion3_2Core == defaultProfile)
{ {
pixelFormat = CreatePixelFormat(NSOpenGLProfileVersionLegacy); pixelFormat = CreatePixelFormat(NSOpenGLProfileVersionLegacy);
}
if (nil == pixelFormat) if (nil == pixelFormat)
{ {
I_FatalError("Cannot OpenGL create pixel format, graphics hardware is not supported"); I_FatalError("Cannot create OpenGL pixel format, graphics hardware is not supported");
}
} }
// Create OpenGL context and view // Create OpenGL context and view