From 78c06554af89c11c9e3e66c7d380f94fd8c1acac Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 6 May 2018 17:53:53 +0300 Subject: [PATCH] - proper handle pixel format creation errors in Cocoa backend --- src/posix/cocoa/i_video.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/posix/cocoa/i_video.mm b/src/posix/cocoa/i_video.mm index 8539fdcf2..5104a043c 100644 --- a/src/posix/cocoa/i_video.mm +++ b/src/posix/cocoa/i_video.mm @@ -378,11 +378,11 @@ CocoaVideo::CocoaVideo() if (nil == pixelFormat && NSOpenGLProfileVersion3_2Core == defaultProfile) { pixelFormat = CreatePixelFormat(NSOpenGLProfileVersionLegacy); + } - if (nil == pixelFormat) - { - I_FatalError("Cannot OpenGL create pixel format, graphics hardware is not supported"); - } + if (nil == pixelFormat) + { + I_FatalError("Cannot create OpenGL pixel format, graphics hardware is not supported"); } // Create OpenGL context and view