From e2a742e2fc6dbd30ce5d987489508d166abb6d71 Mon Sep 17 00:00:00 2001 From: cutealien Date: Fri, 4 Aug 2023 15:46:17 +0000 Subject: [PATCH] Fix compile error with OS X 10.10 SDK, bug #463 Thanks @Ryan Schmidt for report and patch: https://sourceforge.net/p/irrlicht/bugs/463 git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6522 dfc29bdd-3216-0410-991c-e03cc46cb475 --- changes.txt | 1 + source/Irrlicht/CIrrDeviceOSX.mm | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/changes.txt b/changes.txt index 120857f..ef49032 100644 --- a/changes.txt +++ b/changes.txt @@ -1,6 +1,7 @@ -------------------------- Changes in 1.9 (not yet released) +- Fix compile error with OS X 10.10 SDK, bug #463. Thanks @Ryan Schmidt for report and patch. - Optimize quaternion::rotationFromTo. Thanks @Robert Eisele for patch and proof (https://raw.org/proof/quaternion-from-two-vectors) - Shader material example shows now how to pass material values. In 1.8 we could still use gl_FrontMaterial, but that is no longer supported in shaders diff --git a/source/Irrlicht/CIrrDeviceOSX.mm b/source/Irrlicht/CIrrDeviceOSX.mm index fd9412c..b231f0c 100644 --- a/source/Irrlicht/CIrrDeviceOSX.mm +++ b/source/Irrlicht/CIrrDeviceOSX.mm @@ -867,7 +867,7 @@ void CIrrDeviceMacOSX::createDriver() SoftwareRendererType = 2; if (Window) { - Window.contentView.wantsLayer = YES; + [[Window contentView] setWantsLayer:YES]; } #else os::Printer::log("No Software driver support compiled in.", ELL_ERROR); @@ -880,7 +880,7 @@ void CIrrDeviceMacOSX::createDriver() SoftwareRendererType = 1; if (Window) { - Window.contentView.wantsLayer = YES; + [[Window contentView] setWantsLayer:YES]; [ Window setOpaque:YES]; } @@ -1600,7 +1600,7 @@ bool CIrrDeviceMacOSX::present(video::IImage* surface, void* windowId, core::rec NSImage *image = [[[NSImage alloc] initWithSize: imageSize] autorelease]; [image addRepresentation: rep]; - Window.contentView.layer.contents = image; + [[[Window contentView] layer] setContents:image]; } return true; }