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

View File

@@ -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];