diff --git a/ruby/video/cgl.cpp b/ruby/video/cgl.cpp index 1c9d9d6d..d17001e2 100755 --- a/ruby/video/cgl.cpp +++ b/ruby/video/cgl.cpp @@ -145,6 +145,7 @@ private: [view setWantsBestResolutionOpenGLSurface:YES]; [context addSubview:view]; [openGLContext setView:view]; + [openGLContext makeCurrentContext]; [[view window] makeFirstResponder:view]; [view lockFocus];