The problem is related to the scaling applied on 'HiDPI' screens. Prior to Catalina (10.15), MacOS by applied scaling by default to OpenGL applications so applications did not need to be HiDPI aware, but this default changed in 10.15.
To avoid the problem, you need to set setWantsBestResolutionOpenGLSurface:NO for the OpenGL context.
Following the approach taken in the other engines, in CIrrDeviceOSX.mm, the fix is to change the lines
Code: Select all
if (Window)
[(NSOpenGLContext*)ContextManager->getContext().OpenGLOSX.Context setView:[Window contentView]];
else
[(NSOpenGLContext*)ContextManager->getContext().OpenGLOSX.Context setView:(NSView*)CreationParams.WindowId];
Code: Select all
if (Window) {
[[Window contentView] setWantsBestResolutionOpenGLSurface:NO];
[(NSOpenGLContext*)ContextManager->getContext().OpenGLOSX.Context setView:[Window contentView]];
} else {
[(NSView*)CreationParams.WindowId setWantsBestResolutionOpenGLSurface:NO];
[(NSOpenGLContext*)ContextManager->getContext().OpenGLOSX.Context setView:(NSView*)CreationParams.WindowId];
}