From 70e56ae391edbadf6bbf092def85716af4533bcc Mon Sep 17 00:00:00 2001 From: Wonyoung Choi Date: Thu, 16 Aug 2018 06:29:09 +0900 Subject: [PATCH] [OpenTK] Don't call 'LoadAll' on Tizen for discreasing the launching time 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OpenTK/GameWindow.cs b/src/OpenTK/GameWindow.cs index c49fc82..9fa2184 100644 --- a/src/OpenTK/GameWindow.cs +++ b/src/OpenTK/GameWindow.cs @@ -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); }; -- 2.7.4