Merge pull request #250 from Sintendo/xcode11-opengl-fix

ruby/CGL: explicitly set current OpenGL context
This commit is contained in:
byuu 2019-12-24 18:51:01 +09:00 committed by GitHub
commit ffee61a1b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -145,6 +145,7 @@ private:
[view setWantsBestResolutionOpenGLSurface:YES];
[context addSubview:view];
[openGLContext setView:view];
[openGLContext makeCurrentContext];
[[view window] makeFirstResponder:view];
[view lockFocus];