static GL() { #if UNITY_STANDALONE_OSX implementation = new GLMac(); #elif UNITY_STANDALONE_WINDOWS implementation = new GLWin(); #else if (Environment.OSVersion.Platform == PlatformID.MacOSX) { implementation = new GLMac(); } else { implementation = new GLWin(); } #endif }
static GL() { #if UNITY_STANDALONE_OSX implementation = new GLMac(); #elif UNITY_STANDALONE_WINDOWS implementation = new GLWin(); #else // assume editor - other platforms will be solved later if (Environment.OSVersion.Platform == PlatformID.MacOSX) { implementation = new GLMac(); } else { implementation = new GLWin(); } #endif }