mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-11 12:03:57 +02:00
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.
This commit is contained in:
@@ -145,6 +145,7 @@ private:
|
||||
[view setWantsBestResolutionOpenGLSurface:YES];
|
||||
[context addSubview:view];
|
||||
[openGLContext setView:view];
|
||||
[openGLContext makeCurrentContext];
|
||||
[[view window] makeFirstResponder:view];
|
||||
[view lockFocus];
|
||||
|
||||
|
Reference in New Issue
Block a user