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; }