[OpenTK] Don't call 'LoadAll' on Tizen for discreasing the launching time
authorWonyoung Choi <wy80.choi@samsung.com>
Wed, 15 Aug 2018 21:29:09 +0000 (06:29 +0900)
committerWonyoung Choi <wy80.choi@samsung.com>
Wed, 15 Aug 2018 21:29:09 +0000 (06:29 +0900)
Don't call LoadAll on Tizen, LoadAll load the native entry pointer of OpenGLES.
But now OpenTK using dllimport mode on Tizen, it don't need the native entry pointer of OpenGLES.

* Cherry-Picked from https://github.com/Samsung/TizenFX/pull/369

src/OpenTK/GameWindow.cs

index c49fc82..9fa2184 100644 (file)
@@ -192,8 +192,9 @@ namespace OpenTK
                 this.isSingleThreaded = isSingleThreaded;
                 glContext = new GraphicsContext(mode == null ? GraphicsMode.Default : mode, WindowInfo, major, minor, flags);
                 glContext.MakeCurrent(WindowInfo);
+#if !TIZEN
                 (glContext as IGraphicsContextInternal).LoadAll();
-
+#endif
                 VSync = VSyncMode.On;
 
                 //glWindow.WindowInfoChanged += delegate(object sender, EventArgs e) { OnWindowInfoChangedInternal(e); };