mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 22:51:39 +00:00
- proper handle pixel format creation errors in Cocoa backend
(cherry picked from commit 78c06554af
)
This commit is contained in:
parent
5f850067b3
commit
0a5579cdd6
1 changed files with 4 additions and 4 deletions
|
@ -495,11 +495,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
|
||||
|
|
Loading…
Reference in a new issue