[OpenTK] Fixed Utilities.CreateSdl2WindowInfo
authorStefanos A. <stapostol@gmail.com>
Fri, 10 Jan 2014 15:56:26 +0000 (16:56 +0100)
committerStefanos A. <stapostol@gmail.com>
Fri, 10 Jan 2014 15:56:26 +0000 (16:56 +0100)
Utilities.CreateSdl2WindowInfo should store the specified windowHandle
directly instead of trying to call SDL.SDL.CreateWindowFrom.

Source/OpenTK/Platform/Utilities.cs

index 67c92a7..cbf0e81 100644 (file)
@@ -301,7 +301,7 @@ namespace OpenTK.Platform
         public static IWindowInfo CreateSdl2WindowInfo(IntPtr windowHandle)
         {
             return new OpenTK.Platform.SDL2.Sdl2WindowInfo(
-                SDL2.SDL.CreateWindowFrom(windowHandle), null);
+                windowHandle, null);
         }
 
         #endregion