- fixed crash with Cocoa backend on startup

This commit is contained in:
alexey.lysiuk 2018-10-29 22:33:27 +02:00
parent 2aac222d35
commit d2c7ffb2ca
1 changed files with 0 additions and 8 deletions

View File

@ -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<GLsizei>(viewSize.width), static_cast<GLsizei>(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])