mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-05 18:00:41 +01:00
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
This commit is contained in:
parent
2149bfb317
commit
e2a742e2fc
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user