mirror of https://github.com/bsnes-emu/bsnes.git
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:
parent
748cf44f35
commit
526df86ee6
|
@ -145,6 +145,7 @@ private:
|
|||
[view setWantsBestResolutionOpenGLSurface:YES];
|
||||
[context addSubview:view];
|
||||
[openGLContext setView:view];
|
||||
[openGLContext makeCurrentContext];
|
||||
[[view window] makeFirstResponder:view];
|
||||
[view lockFocus];
|
||||
|
||||
|
|
Loading…
Reference in New Issue