Corrected preprocessor alignment.

This commit is contained in:
Jarl Gullberg 2017-07-20 17:30:46 +02:00
parent 2ffc67b8ae
commit 8dcb252dc9
No known key found for this signature in database
GPG key ID: FBB69BD7CAE095A0

View file

@ -46,25 +46,25 @@ namespace OpenTK.Platform
Toolkit.Init(); Toolkit.Init();
// Create regular platform backend // Create regular platform backend
#if SDL2 #if SDL2
if (Configuration.RunningOnSdl2) if (Configuration.RunningOnSdl2)
{ {
Default = new SDL2.Sdl2Factory(); Default = new SDL2.Sdl2Factory();
} }
#endif #endif
#if WIN32 #if WIN32
else if (Configuration.RunningOnWindows) else if (Configuration.RunningOnWindows)
{ {
Default = new Windows.WinFactory(); Default = new Windows.WinFactory();
} }
#endif #endif
#if CARBON #if CARBON
else if (Configuration.RunningOnMacOS) else if (Configuration.RunningOnMacOS)
{ {
Default = new MacOS.MacOSFactory(); Default = new MacOS.MacOSFactory();
} }
#endif #endif
#if X11 #if X11
else if (Configuration.RunningOnX11) else if (Configuration.RunningOnX11)
{ {
Default = new X11.X11Factory(); Default = new X11.X11Factory();
@ -89,9 +89,9 @@ namespace OpenTK.Platform
// using the same API. // using the same API.
Embedded = Default; Embedded = Default;
} }
#if IPHONE #if IPHONE
else if (Configuration.RunningOnIOS) Embedded = new iPhoneOS.iPhoneFactory(); else if (Configuration.RunningOnIOS) Embedded = new iPhoneOS.iPhoneFactory();
#else #else
else if (Egl.Egl.IsSupported) else if (Egl.Egl.IsSupported)
{ {
if (Configuration.RunningOnLinux) if (Configuration.RunningOnLinux)
@ -104,21 +104,21 @@ namespace OpenTK.Platform
Embedded = new Egl.EglX11PlatformFactory(); Embedded = new Egl.EglX11PlatformFactory();
} }
#endif #endif
#if WIN32 #if WIN32
else if (Configuration.RunningOnWindows) else if (Configuration.RunningOnWindows)
{ {
Embedded = new Egl.EglWinPlatformFactory(); Embedded = new Egl.EglWinPlatformFactory();
} }
#endif #endif
#if CARBON #if CARBON
else if (Configuration.RunningOnMacOS) else if (Configuration.RunningOnMacOS)
{ {
Embedded = new Egl.EglMacPlatformFactory(); Embedded = new Egl.EglMacPlatformFactory();
} }
#endif #endif
#if ANDROID #if ANDROID
else if (Configuration.RunningOnAndroid) Embedded = new Android.AndroidFactory(); else if (Configuration.RunningOnAndroid) Embedded = new Android.AndroidFactory();
#endif #endif
else else
{ {
Embedded = new UnsupportedPlatform(); Embedded = new UnsupportedPlatform();
@ -126,11 +126,11 @@ namespace OpenTK.Platform
#if ANDROID #if ANDROID
Angle = new UnsupportedPlatform(); Angle = new UnsupportedPlatform();
#else #else
Angle = new Egl.EglAnglePlatformFactory(Embedded); Angle = new Egl.EglAnglePlatformFactory(Embedded);
#endif #endif
} }
#endif #endif
else else
{ {
Embedded = new UnsupportedPlatform(); Embedded = new UnsupportedPlatform();