From d2c7ffb2caf7eaf72cfeadd1ade14a302f4eec6a Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 29 Oct 2018 22:33:27 +0200 Subject: [PATCH] - fixed crash with Cocoa backend on startup --- src/posix/cocoa/i_video.mm | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/posix/cocoa/i_video.mm b/src/posix/cocoa/i_video.mm index c0f56c480..8cc8fe018 100644 --- a/src/posix/cocoa/i_video.mm +++ b/src/posix/cocoa/i_video.mm @@ -527,14 +527,6 @@ void SystemGLFrameBuffer::SetMode(const bool fullscreen, const bool hiDPI) SetWindowedMode(); } - const NSSize viewSize = I_GetContentViewSize(m_window); - - glViewport(0, 0, static_cast(viewSize.width), static_cast(viewSize.height)); - glClearColor(0.0f, 0.0f, 0.0f, 1.0f); - glClear(GL_COLOR_BUFFER_BIT); - - [[NSOpenGLContext currentContext] flushBuffer]; - [m_window updateTitle]; if (![m_window isKeyWindow])