Skip to content

Commit

Permalink
Fix Vulkan+X11 not working
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo committed Apr 8, 2024
1 parent 22af688 commit d5af283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Framework/Platform/SDL3Window.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public IntPtr WindowHandle
return SDL3.SDL_GetProperty(props, SDL3.SDL_PROP_WINDOW_WAYLAND_SURFACE_POINTER, IntPtr.Zero);

if (SDL3.SDL_GetCurrentVideoDriver() == "x11")
return SDL3.SDL_GetProperty(props, SDL3.SDL_PROP_WINDOW_X11_WINDOW_NUMBER, IntPtr.Zero);
return new IntPtr(SDL3.SDL_GetNumberProperty(props, SDL3.SDL_PROP_WINDOW_X11_WINDOW_NUMBER, 0));

return IntPtr.Zero;

Expand Down

0 comments on commit d5af283

Please sign in to comment.