be sure the current context is set before calling Egl.WaitClient()
authorArmin Sander <armin@replicator.org>
Sun, 19 Mar 2017 14:28:26 +0000 (15:28 +0100)
committerArmin Sander <armin@replicator.org>
Sun, 19 Mar 2017 14:29:00 +0000 (15:29 +0100)
src/OpenTK/Platform/Egl/EglContext.cs

index c45ad7b..9b1639e 100644 (file)
@@ -173,6 +173,7 @@ namespace OpenTK.Platform.Egl
 
         public override void Update(IWindowInfo window)
         {
+            MakeCurrent(window);
             // ANGLE updates the width and height of the back buffer surfaces in the WaitClient function.
             // So without this calling this function, the surface won't match the size of the window after it 
             // was resized.