This commit is contained in:
Robert Osfield 2020-04-29 10:51:50 +01:00
commit 695b836ac6

View File

@ -1223,6 +1223,7 @@ bool GraphicsWindowCocoa::realizeImplementation()
[_view setAutoresizingMask: (NSViewWidthSizable | NSViewHeightSizable) ];
[_view setGraphicsWindowCocoa: this];
[_view setOpenGLContext:_context];
[_view setWantsBestResolutionOpenGLSurface: NO];
// enable multitouch
if (_multiTouchEnabled || (windowData && windowData->isMultiTouchEnabled()))
@ -1305,7 +1306,6 @@ bool GraphicsWindowCocoa:: makeCurrentImplementation()
{
if (_updateContext)
{
[_context update];
_updateContext = false;
}