Sam Lantinga
badbf8da4e
Added some missing changes from main for the Android release build
release-3.2.26
2025-10-30 09:52:18 -07:00
Sam Lantinga
b140291cd0
Updated to version 3.2.26 for release
2025-10-30 09:10:42 -07:00
Sam Lantinga
70b12c1b1b
Check to see if joysticks are actually initialized in SDL_UpdateJoysticks()
...
Fixes https://github.com/libsdl-org/SDL/issues/14362
(cherry picked from commit c21b7f8cb8 )
2025-10-30 08:54:53 -07:00
Simon McVittie
2bbd74b4b6
wayland: Fix compile with libdecor 0.2 and SDL_WAYLAND_LIBDECOR_SHARED=OFF
...
libdecor 0.3, which changes the signature of libdecor_new and
libdecor_decorate to use a const pointer to the interface struct, has
not yet been released. In the latest release, libdecor 0.2.4, the
interface struct is a mutable pointer.
This doesn't affect typical upstream builds with
SDL_WAYLAND_LIBDECOR_SHARED=ON, in which case we're casting a pointer
returned by dlsym(); but Linux distributions that want tighter control
over dependencies often prefer to link them in the normal way, in which
case the build will fail if the signature doesn't match.
Fixes: 33834360 "wayland: Fix libdecor incompatible pointer types"
Signed-off-by: Simon McVittie <smcv@collabora.com >
(cherry picked from commit 8b64dd67d2 )
2025-10-30 07:14:49 -07:00
Sam Lantinga
add176e538
Make sure we don't allocate a TLS ID clobbering an application defined one
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
Fixes https://github.com/libsdl-org/SDL/issues/14359
(cherry picked from commit d9ca0457b5 )
2025-10-29 14:06:11 -07:00
Sam Lantinga
86384afbcf
Fixed the right shoulder button on the 8BitDo Pro 3
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
(cherry picked from commit cecf4b0d4e )
2025-10-28 14:55:36 -07:00
Sam Lantinga
328f833d51
Added a Linux mapping for the 8BitDo Pro 3
...
(cherry picked from commit 78f9cb44c3 )
2025-10-28 14:14:00 -07:00
Frank Praznik
a002a6313e
wayland: Fix libdecor incompatible pointer types
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
(cherry picked from commit 3383436068 )
2025-10-28 13:43:46 -04:00
Sam Lantinga
4fc5405f16
Fixed trying to grab the mouse when losing keyboard focus
...
Fixes https://github.com/libsdl-org/SDL/issues/14350
(cherry picked from commit 2d14a237dc )
2025-10-28 08:20:17 -07:00
Albin Johansson
16d9f7316f
Use cast operators in headers to avoid warnings
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
This avoids compiler warnings when consuming the
headers from C++.
(cherry picked from commit 7381a2b072 )
2025-10-25 20:11:48 -07:00
Sam Lantinga
95977f41b7
Perform full rectangle intersection for empty rects
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
If we don't do that, we leave the x and y values uninitialized.
Fixes https://github.com/libsdl-org/sdl12-compat/issues/365
(cherry picked from commit ffd0ca4391 )
2025-10-25 13:50:32 -07:00
DONGGEUN YOO
3302162ede
Fix uninitialized length in X11_GetClipboardData causing test failures ( #14322 )
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
(cherry picked from commit 093fbfd867 )
2025-10-25 07:42:24 -07:00
Sam Lantinga
29f857fed6
Removed SDL_FILE from source code
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
(cherry picked from commit a402af506c )
2025-10-22 11:11:31 -07:00
Sam Lantinga
492ed877ea
Removed __FILE__ from source code
...
(cherry picked from commit f79ede100b )
2025-10-22 10:49:31 -07:00
Sam Lantinga
b1959ecf23
Be more selective when blacklisting controller touchpads
...
On Android, the PS4 controller is called "Wireless Controller Touchpad"
Fixes https://github.com/libsdl-org/SDL/issues/14294
(cherry picked from commit 999f782ad3 )
2025-10-22 10:45:34 -07:00
Anonymous Maarten
928454cbfe
cmake: fix typo
...
INTERFACE_COMPILE_COMPILE_OPTIONS -> INTERFACE_COMPILE_OPTIONS
(cherry picked from commit c5b0187fc9 )
2025-10-22 19:01:17 +02:00
Katelyn Gadd
36b306a36c
If VULKAN_Submit fails during VULKAN_INTERNAL_CreateTexture, destroy the texture and return NULL
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
(cherry picked from commit 9479ac039c )
2025-10-20 16:24:32 -07:00
Sylvain
92570af7d3
Fixed bug #14233 - Android fix Android_WaitActiveAndLockActivity() to make sure Android_Paused state is refreshed
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
(cherry picked from commit e4c60c05bf )
2025-10-19 07:44:15 -07:00
Peter0x44
5a9050aea3
Make D3D math functions static inline to reduce likelihood of linking conflicts
...
Convert SDL_d3dmath.c functions to static inline in SDL_d3dmath.h to make
it less likely to conflict when static linking SDL. raylib's SDL backend
does not work with a "normal" upstream binary static link. It has these
errors:
/usr/bin/ld: /usr/local/lib64/libSDL3.a(SDL_d3dmath.c.o): in function `MatrixIdentity':
SDL/src/render/SDL_d3dmath.c:35: multiple definition of `MatrixIdentity'; CMakeFiles/raylib.dir/rcore.c.o:rcore.c:(.text+0x18470): first defined here
/usr/bin/ld: /usr/local/lib64/libSDL3.a(SDL_d3dmath.c.o): in function `MatrixMultiply':
SDL/src/render/SDL_d3dmath.c:44: multiple definition of `MatrixMultiply'; CMakeFiles/raylib.dir/rcore.c.o:rcore.c:(.text+0x18540): first defined here
collect2: error: ld returned 1 exit status
It works if these functions aren't emitted, (i.e.
!SDL_VIDEO_RENDER_D3D(11|12|GPU|VULKAN)
Or, if SDL is not linked static. Which I know is preferred anyway.
In raylib's case, it doesn't use this code anyway so it's not a problem
to build it yourself with them disabled. But it's a minor hassle to be
incompatible with static linking libraries from upstream.
I can't see any good reason for these functions to not be static inline
already, so I just put them in the header and deleted the .c.
Raylib's conflicting case is a library with a public function exposed to
users. But SDL's case is not.
- Moved all matrix functions from SDL_d3dmath.c to SDL_d3dmath.h as static inline
- Removed SDL_d3dmath.c from all project files (Visual Studio and Xcode)
- Functions affected: MatrixIdentity, MatrixMultiply, MatrixScaling,
MatrixTranslation, MatrixRotationX, MatrixRotationY, MatrixRotationZ
(cherry picked from commit 705ced8cf5 )
2025-10-14 16:58:04 -07:00
Oleksandr Manenko
3d9f4c3328
Fix thread safety attributes for TryLock functions
...
Changed SDL_TRY_ACQUIRE and SDL_TRY_ACQUIRE_SHARED success value
from 0 to true for functions that now return bool instead of int.
This fixes false positives/negatives in Clang's thread safety analysis.
(cherry picked from commit 901173aee6 )
2025-10-14 12:47:58 -07:00
Sam Lantinga
04ceb2d4a0
Only pass UIPress from game controllers and remotes if the're not open
...
Fixes https://github.com/libsdl-org/SDL/issues/14080
(cherry picked from commit f844f3e10b )
2025-10-14 12:44:23 -07:00
Sam Lantinga
e6987e2452
Fixed emulated touch on Android
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
This also fixes laser pointer input on Meta Quest headsets
(cherry picked from commit 712ce16469 )
2025-10-14 08:40:58 -07:00
Sam Lantinga
4cd6df1997
Added the 8BitDo Ultimate 2C Wireless Controller to the Xbox controller list
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
Fixes https://github.com/libsdl-org/SDL/issues/14127
(cherry picked from commit 98944ecd0c )
2025-10-13 18:48:05 -07:00
Evan Hemsley
9163913305
GPU: Correctly recycle D3D12 descriptor heaps ( #14234 )
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
(cherry picked from commit 20206b8e66 )
2025-10-13 13:00:38 -07:00
cosmonaut
b3f4ba0725
GPU: Validate that buffer size is at least 4 bytes
...
(cherry picked from commit b067dfa345 )
2025-10-13 11:07:22 -07:00
Brenton Bostick
354bda8dde
fill-in missing DeleteLocalRef calls
...
(cherry picked from commit e584d2a8a9 )
2025-10-13 09:28:44 -07:00
Sam Lantinga
8ccbfdf368
Added support for the ZENAIM ARCADE CONTROLLER
...
(cherry picked from commit 831ec4dc6c )
2025-10-13 08:56:34 -07:00
DominusExult
19b646849c
Adding dSYMs (DWARF debug symbols) to the xcFramework.
...
Needed to generate debug symbols for both release and debug builds and explicitly set the format so all arches actually generate the dSYMs.
This allows distributing an SDL3 app to the AppStore without the need to generate the dSYMs via script when using either the xcFramework or embedding the SDL3 Xcode project.
Fixes #13573
(cherry picked from commit 98c03c644a )
2025-10-13 08:35:25 -07:00
Sam Lantinga
48a83d69cc
Corrected texture colors on PS2 (thanks @Trinth!)
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
Fixes https://github.com/libsdl-org/SDL/issues/12395
(cherry picked from commit 1ed093ad8b )
2025-10-12 09:21:49 -07:00
Gustaf Alhäll
ec682cc794
Fix SDL_SetRelativeMouseMode failing with software framebuffer on Haiku
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
(cherry picked from commit 2c63bc7315 )
2025-10-11 09:03:01 -07:00
SDL Wiki Bot
d2d655b41f
Sync SDL3 wiki -> header
...
[ci skip]
(cherry picked from commit add18e52c8 )
2025-10-09 12:23:30 -07:00
Sam Lantinga
d6021b7d89
Only call clipboard callbacks with mime types they expect
...
Also clarified that returning NULL from a callback sends zero length data to the receiver, which should be able to handle that.
Fixes https://github.com/libsdl-org/SDL/issues/9586
(cherry picked from commit 23e3cbec20 )
2025-10-09 12:23:30 -07:00
Sam Lantinga
8dcb6db823
Only return current clipboard data under X11
...
Fixes https://github.com/libsdl-org/SDL/issues/10192
(cherry picked from commit 9cf7cdf23a )
2025-10-09 12:23:30 -07:00
Sam Lantinga
d0cfcf10bb
Fixed crash getting clipboard data processing clipboard events on X11
...
SDL_PumpEvents() was freeing the temporary memory in the clipboard event, so if the application was iterating over the mime types in the event and retrieving the clipboard data, it would crash after the first entry.
(cherry picked from commit 3c0a6c32d4 )
2025-10-09 12:23:30 -07:00
Edu Garcia
dd791f6838
Fix SDL GPU D3D12 Descriptor Heap leak
...
When descriptor leaks overflow, the D3D12 SDL GPU renderer fetches more from the pool, but never returns them, which eventually causes an "out of memory" crash.
(cherry picked from commit c74b406a4c )
2025-10-09 08:45:42 -07:00
Sylvain
988714beb9
Fixed bug #14173 - Android / SDL_Renderer Vulkan : going background / foreground produces a black screen.
...
need to recreate the swap chain + send SDL_EVENT_RENDER_DEVICE_RESET event
(cherry picked from commit 2a96997e90 )
2025-10-09 08:41:00 -07:00
Sam Lantinga
78756540cb
Recreate the Vulkan GPU swap chain when resuming on Android
...
Fixes https://github.com/libsdl-org/SDL/issues/12957
(cherry picked from commit 2a92a3c9c5 )
2025-10-08 21:09:34 -07:00
Sam Lantinga
205b5c9f44
Ignore invalid width/height in setOrientationBis()
...
(cherry picked from commit 6f4993ddee )
2025-10-08 20:15:33 -07:00
Sam Lantinga
bca30aafed
Ignore VK_SUBOPTIMAL_KHR on the Android platform
...
This is returned whenever the device has been rotated, and can be safely ignored.
Fixes https://github.com/libsdl-org/SDL/issues/12950
(cherry picked from commit 00ffddece8 )
2025-10-08 20:04:13 -07:00
Sam Lantinga
840d5c16d2
Temporarily disabled texture binding validation
...
There are some advanced use cases that trip over this, so temporarily disabling the validation pending further review.
Reference: https://github.com/libsdl-org/SDL/issues/13871
(cherry picked from commit a2a60f75c7 )
2025-10-08 19:53:05 -07:00
Sam Lantinga
25b9a686b0
Added the Wooting 60HE keyboard to the controller blacklist
...
(cherry picked from commit d4b684311e )
2025-10-08 16:06:41 -07:00
Sam Lantinga
54c2f2c3f7
Only call WIN_RoUninitialize() if WIN_RoInitialize() succeeded
...
Fixes https://github.com/libsdl-org/SDL/issues/14178
(cherry picked from commit 7914bdb7ea )
2025-10-08 13:16:16 -07:00
Sylvain
b9cf5f08db
Fixed bug #13306 - workaround for android issue "java.lang.NullPointerException android.view.View.onResolvePointerIcon"
...
(cherry picked from commit 10885f4b7e )
2025-10-08 08:05:36 -07:00
Ozkan Sezer
c7a36fa3c9
ci: bump cross-platform-actions.
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
(cherry picked from commit 97c1df66a8 )
2025-10-07 14:28:04 +03:00
Sam Lantinga
73ca5f53e7
Don't treat the Moonlander MK1 Keyboard as a controller
...
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
Fixes http://github.com/mgba-emu/mgba/issues/3606
(cherry picked from commit 69791ccad0 )
2025-10-06 16:52:36 -07:00
Sam Lantinga
2be2fb4918
Fixed build
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled
2025-10-04 10:28:57 -04:00
Anonymous Maarten
fec1dd4a8b
release: don't cache ndk + verify arm64 alignment
...
(cherry picked from commit f4039d0132 )
2025-10-03 23:55:13 +02:00
Sam Lantinga
2a3a8f736c
Fixed destination coordinates when using scale with the software renderer
...
Fixes https://github.com/libsdl-org/SDL/issues/14051
(cherry picked from commit d333044462 )
2025-10-03 13:58:57 -07:00
Anonymous Maarten
d3aff13aa3
cmake: use correct suffix in PkgConfigHelper
...
(cherry picked from commit 0bbfbf5b37 )
2025-10-03 21:03:50 +02:00
Nintorch
54fb312a2c
Add blacklist words for gamepad names
...
(cherry picked from commit 6e6dc500b5 )
2025-10-03 09:45:31 -07:00