From 2f043345c9976b854da9baa56b2dbdc5d638da56 Mon Sep 17 00:00:00 2001 From: Remo E Date: Sat, 18 Apr 2020 10:58:57 +0200 Subject: [PATCH] [macosx 10.15] Fix for https://github.com/openscenegraph/OpenSceneGraph/issues/926 from @PetrBo and @tikittel --- src/osgViewer/GraphicsWindowCocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgViewer/GraphicsWindowCocoa.mm b/src/osgViewer/GraphicsWindowCocoa.mm index 5a3a54012..e93ebc4cd 100644 --- a/src/osgViewer/GraphicsWindowCocoa.mm +++ b/src/osgViewer/GraphicsWindowCocoa.mm @@ -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; }