mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-23 22:58:30 +00:00
[OpenTK] Fixed Utilities.CreateSdl2WindowInfo
Utilities.CreateSdl2WindowInfo should store the specified windowHandle directly instead of trying to call SDL.SDL.CreateWindowFrom.
This commit is contained in:
parent
aff9719872
commit
19eb72b3a9
|
@ -301,7 +301,7 @@ namespace OpenTK.Platform
|
||||||
public static IWindowInfo CreateSdl2WindowInfo(IntPtr windowHandle)
|
public static IWindowInfo CreateSdl2WindowInfo(IntPtr windowHandle)
|
||||||
{
|
{
|
||||||
return new OpenTK.Platform.SDL2.Sdl2WindowInfo(
|
return new OpenTK.Platform.SDL2.Sdl2WindowInfo(
|
||||||
SDL2.SDL.CreateWindowFrom(windowHandle), null);
|
windowHandle, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in a new issue