#1106 fixed -- mac-specific hack should only be applied on a mac.

This commit is contained in:
Chris Forbes
2011-08-15 14:15:55 +12:00
parent 6dd0452c95
commit cc716ab8c7

View File

@@ -133,7 +133,9 @@ namespace OpenRA.Graphics
internal static void Initialize( WindowMode windowMode )
{
FixOSX();
if (Platform.CurrentPlatform == PlatformType.OSX)
FixOSX();
var resolution = GetResolution( windowMode );
var rendererPath = Path.GetFullPath( "OpenRA.Renderer.{0}.dll".F(Game.Settings.Graphics.Renderer) );
device = CreateDevice( Assembly.LoadFile( rendererPath ), resolution.Width, resolution.Height, windowMode );