EglContext: directly use Handle when creating exception message
authorVirgile Bello <virgile@siliconstudio.co.jp>
Wed, 22 Jun 2016 08:46:41 +0000 (17:46 +0900)
committerVirgile Bello <virgile@siliconstudio.co.jp>
Wed, 22 Jun 2016 08:47:49 +0000 (17:47 +0900)
Source/OpenTK/Platform/Egl/EglContext.cs

index 3a907ac..b6cca8f 100644 (file)
@@ -117,7 +117,7 @@ namespace OpenTK.Platform.Egl
         {
             if (!Egl.SwapBuffers(WindowInfo.Display, WindowInfo.Surface))
             {
-                throw new GraphicsContextException(string.Format("Failed to swap buffers for context {0} current. Error: {1}", this, Egl.GetError()));
+                throw new GraphicsContextException(string.Format("Failed to swap buffers for context {0} current. Error: {1}", Handle, Egl.GetError()));
             }
         }
 
@@ -133,7 +133,7 @@ namespace OpenTK.Platform.Egl
                     WindowInfo = (EglWindowInfo) window;
                 if (!Egl.MakeCurrent(WindowInfo.Display, WindowInfo.Surface, WindowInfo.Surface, HandleAsEGLContext))
                 {
-                    throw new GraphicsContextException(string.Format("Failed to make context {0} current. Error: {1}", this, Egl.GetError()));
+                    throw new GraphicsContextException(string.Format("Failed to make context {0} current. Error: {1}", Handle, Egl.GetError()));
                 }
             }
             else