Sam Lantinga
11d38fc23b
Only use a transparent cursor on Windows when connected via RDP
...
VMware relies on the cursor being set to NULL to optimize relative mouse motion for games.
We should also revisit whether current RDP works better with a NULL cursor or a transparent cursor.
Fixes https://github.com/libsdl-org/SDL/issues/13700
(cherry picked from commit dac6af4ba6
)
2025-09-14 17:31:09 -07:00
Sam Lantinga
d027f0ae6e
Remove Windows 32-bit ARM build from CI
...
This architecture is deprecated and is now failing with:
Windows SDK 10.0.22621.0 : 'C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um' not found or was incomplete
Fixes https://github.com/libsdl-org/SDL/issues/13949
(cherry picked from commit cc3274b6f1
)
2025-09-14 15:45:34 -07:00
Nintorch
44290c204e
Fix HP Deluxe Webcam KQ246AA detected as joystick
...
(cherry picked from commit 556ee00fe3
)
2025-09-14 15:40:40 -07:00
Sam Lantinga
0b69860af6
Fixed testprocess on 32-bit Windows
...
Previously the test would kill the child process while it was in the process of initializing (loading DLLs, etc) and this would cause the test to fail.
(cherry picked from commit 937b7e6aea
)
2025-09-14 15:40:06 -07:00
Sam Lantinga
e7a1ae0ea5
Clarify why we ignore EINVAL when flushing a file descriptor
...
(cherry picked from commit a1d3fc1f50
)
2025-09-14 15:39:53 -07:00
Sam Lantinga
7af36d6c40
Ignore errors flushing output on POSIX pipes
...
Fixes https://github.com/libsdl-org/SDL/issues/13116
Fixes https://github.com/libsdl-org/SDL/issues/13412
(cherry picked from commit e40d337a47
)
2025-09-14 12:10:18 -07:00
Sam Lantinga
d1ae1163dd
Wait briefly after enabling effects on DualSense controller
...
The rumble motors apparently take a short time to power up after enabling enhanced mode.
Fixes https://github.com/libsdl-org/SDL/issues/13909
(cherry picked from commit 1aba421bd3
)
2025-09-14 10:00:40 -07:00
Sam Lantinga
b2cf5729b4
Disable Windows.Gaming.Input by default
...
The functionality is already covered by XInput and DirectInput, and Microsoft is recommending GameInput going forward.
Fixes https://github.com/libsdl-org/SDL/issues/13000
(cherry picked from commit 78a29d1670
)
2025-09-14 08:52:43 -07:00
Sam Lantinga
11b8dd76db
Fixed memory leak when using detached threads
...
Fixes https://github.com/libsdl-org/SDL/issues/13886
(cherry picked from commit ede86a1267
)
2025-09-14 08:43:12 -07:00
Frank Praznik
56507a6122
x11: Use the SDL_WindowFlags type instead of Uint32
...
Uint32 can potentially truncate the flag value, as it is 64 bits in SDL3.
(cherry picked from commit 4561be89a5
)
2025-09-13 15:45:43 -04:00
Evan Hemsley
8d4324cba2
GPU: Bump MAX_COLOR_TARGET_BINDINGS to 8 ( #13937 )
...
(cherry picked from commit fe314a1b8a
)
2025-09-12 13:38:58 -07:00
Jaan Soulier
35408a2126
Fix reallocation of GPU renderer vertex buffer
...
(cherry picked from commit ed6a72a7fd
)
2025-09-09 20:28:32 -07:00
Sam Lantinga
e5b9dfd181
Fixed setting SDL_PROP_TEXTURE_VULKAN_TEXTURE_NUMBER
...
(cherry picked from commit b7dba970e1
)
2025-09-09 17:35:03 -07:00
eafton
e8a5d07e5e
X11: Check for invalid opcodes in SHM error handler
...
(cherry picked from commit b59d6d49c3
)
2025-09-09 10:59:58 -07:00
Luis Caceres
8c1daf0caf
gpu/vulkan: Move dereference after null check
...
(cherry picked from commit 03d0c2ad74
)
2025-09-08 09:50:09 -07:00
Sam Lantinga
ad2b211f75
Fixed pitch and chroma issues with the Vulkan planar YUV texture update functions
...
Fixes https://github.com/libsdl-org/SDL/issues/13734
(cherry picked from commit 466f93aee1
)
2025-09-07 10:19:59 -07:00
Sam Lantinga
414ae344af
Fixed rumble strength on DualSense Edge and Bluetooth connected controllers
...
Fixes https://github.com/libsdl-org/SDL/issues/13771
(cherry picked from commit 25d9096d41
)
2025-09-06 11:53:55 -07:00
Adrian
71af2c020c
Set preferredFrameRateRange in main callbacks CADisplayLink
...
(cherry picked from commit 01e6aceffc
)
2025-09-06 10:13:44 -07:00
Aleksey Melekh
e755f50072
xbox: fix build
...
(cherry picked from commit 129c97f610
)
2025-09-05 09:20:34 -07:00
Sam Lantinga
a0b8275e9c
Fixed the perspective matrix calculation (thanks @KonkolyTamas!)
...
Fixes https://github.com/libsdl-org/SDL/issues/13867
(cherry picked from commit ea1a769322
)
2025-09-04 06:07:28 -07:00
Cameron Cawley
ea362839b1
Remove unused PSP source files
...
(cherry picked from commit 42f571ea4b
)
2025-09-03 15:20:00 -07:00
Sam Lantinga
e7dd5d841b
Don't set SDL_SURFACE_LOCK_NEEDED until a surface is RLE encoded
...
Reference https://github.com/libsdl-org/sdl2-compat/issues/476
(cherry picked from commit 437d78499c
)
2025-09-02 21:32:17 -07:00
Sam Lantinga
5594d03da0
Leave letterbox borders set to the frame clear color
...
Fixes https://github.com/libsdl-org/sdl2-compat/issues/483
(cherry picked from commit fbbc29159a
)
2025-09-02 20:14:56 -07:00
Sam Lantinga
f2ae66b64f
Set the texture scale and address mode when creating a texture
...
Fixes https://github.com/libsdl-org/sdl2-compat/issues/506
(cherry picked from commit ef19c72015
)
2025-09-02 19:46:28 -07:00
Anonymous Maarten
393d99338f
cmake: make SDL_CPU_xxx variable visible when using CMAKE_OSX_ARCHITECTURES
...
(cherry picked from commit ebb52973e1
)
2025-09-02 23:00:10 +03:00
Ozkan Sezer
4d88280931
cmake: simd detection clean-up for Apple multi-arch configs.
...
(cherry picked from commit 83bb0f9105
)
2025-09-02 22:35:32 +03:00
Anonymous Maarten
e8cc359b5e
cmake: use 'TargetConditionals.h' on Apple for SIMD tests
...
(cherry picked from commit e15e2808f2
)
2025-09-02 22:35:20 +03:00
Anonymous Maarten
3b4a198655
cmake: use APPLE in dep_option
...
expands to <nothing> on e.g. Windows, which will be interpreted as true by cmake_dependent_option.
(cherry picked from commit 1e7d3b51de
)
2025-09-02 22:35:02 +03:00
Ethan Lee
03dd1520a3
gpu: VK_KHR_get_physical_device_properties2 can be optional
...
(cherry picked from commit 689049f8ec
)
2025-09-02 09:53:59 -07:00
Sam Lantinga
a6fd74fa3b
Fix crash when enumerating Steam Controllers
...
Closes https://github.com/libsdl-org/SDL/pull/13746
2025-09-02 08:42:16 -07:00
Sam Lantinga
03b36bac94
Updated to version 3.2.23 for development
2025-09-01 15:12:43 -07:00
Sam Lantinga
a96677bdf6
Updated to version 3.2.22 for release
release-3.2.22
2025-09-01 14:40:32 -07:00
Ryan C. Gordon
67f89d0a2b
openslES: Patched to compile.
...
(whoops.)
(cherry picked from commit 7323104f97
)
2025-09-01 11:10:33 -04:00
Ryan C. Gordon
f6de8877ec
openslES: OpenSL ES on Android only supports two formats, limit to that.
...
(Three with the floating point extension, which we use.)
This is according to:
https://developer.android.com/ndk/guides/audio/opensl/opensl-for-android
Previously, this would accept a request for Sint8 or Sint32 and disaster
would ensue.
Fixes #13779 .
(cherry picked from commit 0b2a003a35
)
2025-09-01 10:31:05 -04:00
Ozkan Sezer
7c189b1f17
cmake: revert commit 5d1bbd9
and change sse4.2 test
...
clang doesn't support -mcrc32 until version 14.0, therefore drop -mcrc32
use in sse 4.2 test, and change it to check _mm_cmpgt_epi64() instead of
_mm_crc32_u32(). without this, sse4.2 check was failing with clang <= 13
Fixes https://github.com/libsdl-org/SDL/pull/12223
(cherry picked from commit 875653658a
)
2025-08-31 03:20:40 +03:00
Sam Lantinga
a7947080c0
Fixed warnings building with Visual Studio
...
(cherry picked from commit 7c8df4ea52
)
2025-08-30 10:16:11 -07:00
Sam Lantinga
08c82a3781
Fixed build
...
(cherry picked from commit 3cf2350f21
)
2025-08-30 10:15:48 -07:00
Jordan Saunders
589aea50c2
Fix two uninitialized variables
...
Found when running in valgrind looking at another issue.
- RenderPass' depth_stencil_target
Tripped in SDL_BindGPUFragmentSamplers when not binding a DS target
- VulkanCommandBuffer's swapchainRequested
Tripped in VULKAN_Submit for the end transition barrier when
creating an image. The field is only reset when reused, not on first
use
(cherry picked from commit 265236d952
)
2025-08-30 06:05:43 -07:00
Ozkan Sezer
72acd7c9df
CI: add OpenBSD workflow
...
(cherry picked from commit c0e5fd55d2
)
2025-08-30 14:22:24 +03:00
Frank Praznik
1a70d1158e
fs: Fix OpenBSD path retrieval
...
Set the path start pointer to point to a valid string.
(cherry picked from commit fdfde42db1
)
2025-08-30 14:21:24 +03:00
Frank Praznik
ae915c6516
wayland: Add a sigtimedwait() implementation for OpenBSD
...
sigtimedwait() is an optional part of POSIX.1-2001, and OpenBSD doesn't implement it. Add a replacement implementation based on https://comp.unix.programmer.narkive.com/rEDH0sPT/sigtimedwait-implementation
(cherry picked from commit 1049426a76
)
2025-08-30 14:21:00 +03:00
Xander
54d573332e
Add SDL_SENSOR_COUNT to SDL_SensorType
...
(cherry picked from commit dc7a3a1219
)
2025-08-29 07:31:25 -07:00
Matthew Zavislak
0204a69f6b
Add elf alignment check for Android artifacts ( #13818 )
...
(cherry picked from commit 4f11feb708
)
2025-08-28 16:31:25 -07:00
Susko3
b2689ff76a
Avoid checking for HAVE_POSIX_SPAWN on Android
...
This makes the CMake build closer to SDL_build_config_android.h
as both will now use SDL_PROCESS_DUMMY.
(cherry picked from commit cd21bbe796
)
2025-08-28 04:10:16 -07:00
Ozkan Sezer
611940fb80
cmake: fall back to -Wconversion if -Wfloat-conversion isn't available
...
... during checks for valid isinf/isinff/isnan/isnanf macros.
(cherry picked from commit 98bed62259
)
2025-08-27 22:20:37 +03:00
Nintorch
16c0329a2a
Add Emscripten joystick rumble support
...
Adds support for Emscripten (Web) joystick rumble support via EM_ASM_INT macros and HTML5's Gamepad API.
(cherry picked from commit 1fbed16cb0
)
2025-08-25 12:59:15 -07:00
Nintorch
2743716132
Allow Android to ignore unnecessary joysticks
...
Previously, SDL_ShouldIgnoreJoystick wasn't being called for Android, and fingerprint sensors were recognized as joysticks.
(cherry picked from commit 1af7dfb0a7
)
2025-08-25 11:23:34 -07:00
Colin Kinloch
a744eee993
testffmpeg: avutil queue family version check
...
The `AVVulkanDeviceQueueFamily` struct was introduced by libavutil
59.34.100
(cherry picked from commit 81920b5db7
)
2025-08-25 11:10:31 -07:00
Evan Hemsley
0e24267eb5
gpu: D3D12 only requires feature level 11_0 with Resource Binding Tier 2. ( #13782 )
...
We previously thought this wasn't possible because constant buffer offsets and
partial updates were unavailable, but we were reading the wrong table - this is
only the case for D3D11...
https://learn.microsoft.com/en-us/windows/win32/direct3d11/overviews-direct3d-11-devices-downlevel-intro
... while 12 doesn't list this feature at all:
https://learn.microsoft.com/en-us/windows/win32/direct3d12/hardware-feature-levels
We double checked and Jesse Natalie confirmed that this feature is required for
D3D12 even for 11_0 drivers. (Thanks Jesse!)
Additionally, D3D12 requires that UAVs are accessible from all shader stages,
meaning Tier 2 is enough to support the number of UAVs we need. Tier 1 could be
a property to lower the requirements, but that can be done later.
2025-08-22 14:07:58 -07:00
Wilson Jallet
f4d6043aa4
GPU: Fix Vulkan indexing error for resolve attachment refs ( #13768 )
...
(cherry picked from commit 03b14f5211
)
2025-08-19 12:13:23 -07:00