From 526df86ee6e6ff882c08dcf220d949b717145ed6 Mon Sep 17 00:00:00 2001 From: Sintendo Date: Mon, 23 Dec 2019 21:33:33 +0100 Subject: [PATCH] ruby/CGL: explicitly set current OpenGL context On builds made with Xcode 11+ the current OpenGL context wasn't being properly configured anymore, resulting in shader compilation errors and a red screen. Explicitly calling makeCurrentContext fixes this. --- ruby/video/cgl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ruby/video/cgl.cpp b/ruby/video/cgl.cpp index 1c9d9d6d..d17001e2 100755 --- a/ruby/video/cgl.cpp +++ b/ruby/video/cgl.cpp @@ -145,6 +145,7 @@ private: [view setWantsBestResolutionOpenGLSurface:YES]; [context addSubview:view]; [openGLContext setView:view]; + [openGLContext makeCurrentContext]; [[view window] makeFirstResponder:view]; [view lockFocus];