Skip to content

Commit

Permalink
Merge pull request #944 from remoe/patch-1
Browse files Browse the repository at this point in the history
[macosx 10.15] Fix GC resize issue #926 from @PetrBo and @tkittel
  • Loading branch information
openscenegraph authored Apr 29, 2020
2 parents 3590e4c + 3994378 commit f089d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osgViewer/GraphicsWindowCocoa.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,7 @@ virtual void getWindowBounds(CGRect& rect)
[_view setAutoresizingMask: (NSViewWidthSizable | NSViewHeightSizable) ];
[_view setGraphicsWindowCocoa: this];
[_view setOpenGLContext:_context];
[_view setWantsBestResolutionOpenGLSurface: NO];

// enable multitouch
if (_multiTouchEnabled || (windowData && windowData->isMultiTouchEnabled()))
Expand Down Expand Up @@ -1305,7 +1306,6 @@ virtual void getWindowBounds(CGRect& rect)
{
if (_updateContext)
{
[_context update];
_updateContext = false;
}

Expand Down

0 comments on commit f089d2e

Please sign in to comment.