Cameron Gutman
48e5fc7b69
cocoa: Fix 1px border in fullscreen on Tahoe
...
(cherry picked from commit 1d83a35e48 )
2026-02-08 11:01:44 -08:00
Sam Lantinga
12e9ff33c3
Fixed checking against cached shader params (thanks @ccawley2011!)
...
(cherry picked from commit 4de62c35c0 )
2026-02-08 11:00:24 -08:00
William Horvath
054bea938a
dummyaudio: Remove bitrotted support for __EMSCRIPTEN_PTHREADS__ code path.
...
In SDL_audio.c:OpenPhysicalAudioDevice, an attempt is made to SDL_CreateThread
if ProvidesOwnCallbackThread is false, but SDL_CreateThreadWithPropertiesRuntime
is not implemented for Emscripten, so this always fails. I'm not sure if/when
this ever worked, but it simply cannot work in its current state.
(cherry picked from commit 8ee7dc2f9f )
2026-02-08 09:32:18 -08:00
RaceTheMaSe
b9107ec196
dialog_utils: fix NameTransform() function pointer type ( #15002 )
...
(cherry picked from commit c15ca27740 )
2026-02-08 09:32:18 -08:00
Frank Praznik
5728f9d703
wayland: Check the mod state when sending repeated key text
...
The control and alt modifiers should suppress text events when repeating to match standard press behavior.
(cherry picked from commit f07ba5b954 )
2026-02-07 14:32:12 -05:00
ROllerozxa
e61a874c66
Fix SDL_TriggerBreakpoint being undefined on slimcc
...
(cherry picked from commit 3919cc902e )
2026-02-07 10:14:28 -08:00
Vicki Pfau
2b72332b81
Fix Switch and Switch 2 player LED patterns
...
The patterns we were using don't match the official patterns, which fill up as
many lights as players instead of just using the nth player LED. Above 4,
there are some special patterns, as documented on Nintendo's Singaporean site:
https://www.nintendo.com/sg/support/qa/detail/33822
(cherry picked from commit 017d950b6b )
2026-02-07 07:37:51 -08:00
Sam Lantinga
9ee86e7e79
Fixed building with -DSDL_HIDAPI=OFF
...
Fixes https://github.com/libsdl-org/SDL/issues/14975
(cherry picked from commit 56b77177a9 )
2026-02-06 10:00:17 -08:00
Jari Vetoniemi
6168085e45
cocoawindow: fix wrong content scale with ANGLE EGL context
...
ANGLE expects that the surface layer content scale is updated
accordingly.
<b406401e42/src/libANGLE/renderer/metal/SurfaceMtl.mm (L597-L636) >
(cherry picked from commit ef41e0a0f0 )
2026-02-06 09:17:17 -08:00
Wohlstand
000d56702e
SDL_render_psp.c: Also apply the similar fix to PSP
...
Since this problem is the same here
(cherry picked from commit a36ef1f187 )
2026-02-06 09:08:58 -08:00
Wohlstand
c12d90108f
SDL_render_vita_gxm.c: Fixed the black screen due to zero cliprect
...
(cherry picked from commit 87a81bd09d )
2026-02-06 09:08:57 -08:00
Wohlstand
44c0feed99
Revert "Reverted Vita cliprect changes"
...
This reverts commit aeb4b3d2fc .
(cherry picked from commit 75d1d64c75 )
2026-02-06 09:08:57 -08:00
Ryan C. Gordon
fc5862b0dd
opengl: added SDL_HINT_OPENGL_FORCE_SRGB_CAPABLE.
...
Reference Issue #14898 .
(cherry picked from commit 632c83b722 )
2026-02-05 18:45:06 -05:00
Ryan C. Gordon
7f3d51b690
cocoa: Fix SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES=0.
...
This hint is documented to not just turn off fullscreen windows going into a
new Fullscreen Space, but also to make the green button on a resizeable
window's title bar do a maximize/zoom instead of make the window fullscreen.
Previously, this only did the former and not the latter (or perhaps it worked
and the defaults changed in a newer macOS, we aren't sure).
Fixes #7470 .
(cherry picked from commit 50f3adec77 )
2026-02-05 18:43:39 -05:00
Vicki Pfau
45086459d2
Add and use libusb_set_auto_detach_kernel_driver for the Switch 2 driver
...
(cherry picked from commit e1b8ad0380 )
2026-02-05 14:59:10 -08:00
Sam Lantinga
5964104910
Guarantee that pens are in proximity before motion and button events
...
This also delays pen proximity out events to make sure that the pen is really gone before delivering them. On Android, you get a HOVER_EXIT event when the pen contacts the surface, which we don't want to treat as the pen leaving proximity.
(cherry picked from commit bddf6d3e2a )
2026-02-05 14:09:07 -08:00
Sam Lantinga
9194d199e7
Added support for the third stylus button on Android
...
(cherry picked from commit cd7fc90c87 )
2026-02-05 14:09:07 -08:00
Ryan C. Gordon
81d9f30db4
pen: Fixed incorrect comment.
...
(cherry picked from commit dd18d7ff52 )
2026-02-05 14:09:07 -08:00
Sam Lantinga
38b9c9117d
Fixed warning: no previous prototype for function 'SDL_PrivateIsGamepadPlatformMatch'
...
(cherry picked from commit cd14bf3d00 )
2026-02-04 14:41:27 -08:00
Frank Praznik
2887de55d6
wayland: Only use owned surface data when processing touches
...
Otherwise, user data set externally may be treated as SDL window data.
(cherry picked from commit bd472b43f5 )
2026-02-04 14:29:08 -05:00
Anonymous Maarten
8107d5b042
cmake: cannot detect deprecated apple-clang link options (they are not fatal)
...
So skip these
(cherry picked from commit 5f151f4532 )
2026-02-03 20:57:32 +01:00
Nintorch
94f6f8d3c3
Add share button mapping to Xbox Series X controller on Android
...
(cherry picked from commit 997a168e00 )
2026-02-03 11:33:44 -08:00
Sam Lantinga
5935fe73d3
Fixed detecting Nintendo Switch Pro 2 controller on Steam Link hardware
...
In this case, it's available via both libusb and hidraw, but the hidraw device isn't usable. If a device needs to be opened via libusb, don't expose it via hidraw enumeration.
(cherry picked from commit f60231759d )
2026-02-03 10:44:31 -08:00
Anonymous Maarten
775eac98ee
surface: verify surface palette in SDL_Save(BMP|PNG) before hitting the FS
...
(cherry picked from commit 28ea4a8e31 )
2026-02-03 09:32:37 -08:00
Ryan C. Gordon
d9bc9dda7a
emscripten: Cleanup some wasm32/wasm64 ifdefs.
...
Fixes #14066 .
(cherry picked from commit bb6ced6fc0 )
2026-02-02 19:23:33 -05:00
Ryan C. Gordon
f9bb023eeb
emscripten: Unify creation of Module['SDL3'] in at SDL_Init time.
...
(cherry picked from commit 7d093940a7 )
2026-02-02 19:23:28 -05:00
Sam Lantinga
9bf533d1c4
Reverted unintended testsprite changes
...
(cherry picked from commit de605a3b7e )
2026-02-02 16:01:02 -08:00
Sam Lantinga
a2653b857c
Fixed the GameCube Controller Adapter showing up twice on macOS
...
(cherry picked from commit b5206909a7 )
2026-02-02 15:56:06 -08:00
Sam Lantinga
00fc74e6af
Fixed handling GameCube adapters in PC mode on Linux and macOS
...
On Windows there is a separate HIDAPI device for each slot. On Linux and macOS, there is a single HIDAPI device and the slot is included in the report.
(cherry picked from commit cdffbdfeaf )
2026-02-02 15:56:05 -08:00
SDL Wiki Bot
28470f9231
Sync SDL3 wiki -> header
...
[ci skip]
(cherry picked from commit eb181c8d1a )
2026-02-02 11:40:08 -08:00
Evan Hemsley
171874ae5c
GPU: Allow D3D12 backend to load vendored D3D12Core.dll ( #14946 )
...
---------
Co-authored-by: Ethan Lee <flibitijibibo@gmail.com >
(cherry picked from commit e25e0f3c5b )
2026-02-02 11:40:08 -08:00
Anonymous Maarten
6dc3211d56
cmake: dfix disabling dlopen notes when configuring with -DSDL_DLOPEN_NOTES=OFF
...
(cherry picked from commit b0a9f40e28 )
2026-02-01 19:24:19 +01:00
Cameron Gutman
6c38358984
Fix invalidation of bound textures/shaders across a renderer flush on D3D9
...
(cherry picked from commit 4743f97c39 )
2026-01-31 17:17:44 -08:00
Ryan C. Gordon
c3e92cf1c4
asyncio: don't report failures on closing read-only files with Windows IoRing.
...
We still need the task to go through the IoRing, even though the flush
operation we use to get it there will always fail on a read-only file. So
check for this specific case and don't report failure.
Fixes #14878 .
(cherry picked from commit 4df13e8806 )
2026-01-31 16:06:54 -08:00
Caleb Cornett
de5e0f1784
GPU: Query UnrestrictedBufferTextureCopyPitchSupported to avoid D3D12 realignment copies
...
(cherry picked from commit 742a6fd092 )
2026-01-31 16:04:03 -08:00
Lucas Murray
1a278bb511
GPU: Fix memory leak when creating D3D12 compute pipelines
2026-01-31 16:24:06 -05:00
Ethan Lee
e803cbb34a
gpu: Rank dzn above lavapipe, for WSL Vulkan support
2026-01-31 08:35:04 -05:00
Sam Lantinga
997808a945
Updated SDL_PollEvent() documentation
...
Fixes https://github.com/libsdl-org/sdlwiki/issues/911
(cherry picked from commit 63a95a4a4d )
2026-01-30 16:24:10 -08:00
Cameron Gutman
3cf15dc222
gamepad: Accept older 'Mac OS X' mappings on macOS
...
(cherry picked from commit e3c9ec7b67 )
2026-01-30 18:12:54 -06:00
Henrique Jorge Barateli
38b5ad824d
Fixed PS2 joystick analog sticks not enabled
...
(cherry picked from commit 8fa8c331a5 )
2026-01-30 12:17:39 -08:00
Anonymous Maarten
d90c07a88f
cmake: force disable SDL_HIDAPI_LIBUSB when SDL_HIDAPI is disabled
...
(cherry picked from commit 821ab81a62 )
2026-01-30 07:32:38 -08:00
Eddy Jansson
ff2a43bfbf
Fix typos in comments.
...
(cherry picked from commit 23fec649c2 )
2026-01-30 07:25:35 -08:00
Ethan Lee
5a4f1cbceb
gpu: MSVC buildfix for Vulkan device property struct initialization
2026-01-30 09:41:05 -05:00
Ethan Lee
c4074bc9c9
gpu: Check for Vulkan conformance while checking the device rank.
...
This should behave largely the same, except now Dozen is given a pass for WSL.
This is a better fix for #14915 .
2026-01-30 09:22:13 -05:00
Sam Lantinga
6b6fe286fb
Fixed macOS build when video is disabled
...
Fixes https://github.com/libsdl-org/SDL/issues/14912
(cherry picked from commit 5f0c889082 )
2026-01-29 14:30:51 -08:00
Sam Lantinga
e612c58518
Reference count window claim calls for a given GPU device
...
Fixes https://github.com/libsdl-org/SDL/issues/14918
(cherry picked from commit 696c12826f )
2026-01-29 14:05:13 -08:00
Ethan Lee
dfb270f87c
gpu: Vulkan should fail if the best device is non-conformant
2026-01-29 14:42:17 -05:00
Sam Lantinga
1ec73bac92
Fixed typo
...
(cherry picked from commit 58c30a4451 )
2026-01-28 13:43:40 -08:00
Sam Lantinga
e1294f3b48
Fixed the 8BitDo Ultimate 2 Wireless for PC controller showing up twice on macOS
...
(cherry picked from commit 0f10f81b3b )
2026-01-28 13:39:37 -08:00
Sam Lantinga
9c0b773f09
Fixed memory leak in testffmpeg EGL codepath
...
Fixes https://github.com/libsdl-org/SDL/issues/14908
(cherry picked from commit ee38b7c3df )
2026-01-28 08:21:11 -08:00