mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-22 15:53:26 +02:00
Merge pull request #250 from Sintendo/xcode11-opengl-fix
ruby/CGL: explicitly set current OpenGL context
This commit is contained in:
@@ -145,6 +145,7 @@ private:
|
|||||||
[view setWantsBestResolutionOpenGLSurface:YES];
|
[view setWantsBestResolutionOpenGLSurface:YES];
|
||||||
[context addSubview:view];
|
[context addSubview:view];
|
||||||
[openGLContext setView:view];
|
[openGLContext setView:view];
|
||||||
|
[openGLContext makeCurrentContext];
|
||||||
[[view window] makeFirstResponder:view];
|
[[view window] makeFirstResponder:view];
|
||||||
[view lockFocus];
|
[view lockFocus];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user