[macosx 10.15] Fix for https://github.com/openscenegraph/OpenSceneGraph/issues/926 from @PetrBo and @tikittel
This commit is contained in:
parent
24fc34a440
commit
2f043345c9
@ -1223,6 +1223,7 @@ bool GraphicsWindowCocoa::realizeImplementation()
|
|||||||
[_view setAutoresizingMask: (NSViewWidthSizable | NSViewHeightSizable) ];
|
[_view setAutoresizingMask: (NSViewWidthSizable | NSViewHeightSizable) ];
|
||||||
[_view setGraphicsWindowCocoa: this];
|
[_view setGraphicsWindowCocoa: this];
|
||||||
[_view setOpenGLContext:_context];
|
[_view setOpenGLContext:_context];
|
||||||
|
[_view setWantsBestResolutionOpenGLSurface: NO];
|
||||||
|
|
||||||
// enable multitouch
|
// enable multitouch
|
||||||
if (_multiTouchEnabled || (windowData && windowData->isMultiTouchEnabled()))
|
if (_multiTouchEnabled || (windowData && windowData->isMultiTouchEnabled()))
|
||||||
@ -1305,7 +1306,6 @@ bool GraphicsWindowCocoa:: makeCurrentImplementation()
|
|||||||
{
|
{
|
||||||
if (_updateContext)
|
if (_updateContext)
|
||||||
{
|
{
|
||||||
[_context update];
|
|
||||||
_updateContext = false;
|
_updateContext = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user