mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-08 03:10:40 +01:00
Fix MacOS 10.15 only rendering to quarter of window.
Thanks @bridgeco for the patch: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=52644 git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6132 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
0073ef7cce
commit
d7a1a35339
|
@ -863,9 +863,15 @@ void CIrrDeviceMacOSX::createDriver()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Window)
|
if (Window)
|
||||||
|
{
|
||||||
|
[[Window contentView] setWantsBestResolutionOpenGLSurface:NO];
|
||||||
[(NSOpenGLContext*)ContextManager->getContext().OpenGLOSX.Context setView:[Window contentView]];
|
[(NSOpenGLContext*)ContextManager->getContext().OpenGLOSX.Context setView:[Window contentView]];
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
[(NSView*)CreationParams.WindowId setWantsBestResolutionOpenGLSurface:NO];
|
||||||
[(NSOpenGLContext*)ContextManager->getContext().OpenGLOSX.Context setView:(NSView*)CreationParams.WindowId];
|
[(NSOpenGLContext*)ContextManager->getContext().OpenGLOSX.Context setView:(NSView*)CreationParams.WindowId];
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef __MAC_10_6
|
#ifndef __MAC_10_6
|
||||||
CGLContextObj CGLContext = (CGLContextObj)[(NSOpenGLContext*)ContextManager->getContext().OpenGLOSX.Context CGLContextObj];
|
CGLContextObj CGLContext = (CGLContextObj)[(NSOpenGLContext*)ContextManager->getContext().OpenGLOSX.Context CGLContextObj];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user