SDL/test
Sam Lantinga 1289fdded2 render: an empty clip rect should clip all drawing
Added a test to validate this and fixed the Metal renderer

Fixes https://github.com/libsdl-org/SDL/issues/15434

(cherry picked from commit e04bfb4c6e)
2026-05-29 13:59:23 -07:00
..
android Fixed bug #13794: prevent to use the onBackPressed callback API that is enabled on API36 2025-08-27 11:39:00 +02:00
emscripten emscripten: pass --no-sandbox to the chrome web driver 2025-01-22 02:48:32 +01:00
n3ds
testgpu Added support for using the GPU renderer as an offscreen renderer 2025-10-01 23:32:18 -07:00
win32 Fix support for Windows XP and up (#13904) 2025-09-08 13:00:26 -07:00
audiofile.png Fixed permissions 2025-10-06 17:24:56 -07:00
build-shaders.sh Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
checkkeys.c Enable text editing events in checkkeys 2026-05-07 09:57:22 -07:00
childprocess.c [Process API] Quoting enhancements (#12946) 2025-05-12 09:17:21 -07:00
CMakeLists.txt cmake: break dependency cycle when doing an in-source build 2025-12-24 22:18:57 +01:00
COPYING
gamepad_axis.h Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_axis.png Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_axis_arrow.h Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_axis_arrow.png Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_back.h Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_back.png Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_battery.h Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_battery.png Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_battery_unknown.h Added gamepad BMP files used as sources for the header files 2023-07-16 04:32:12 -07:00
gamepad_battery_unknown.png Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_battery_wired.h Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_battery_wired.png Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_button.h Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_button.png Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_button_background.h Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_button_background.png Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_button_small.h Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_button_small.png Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_face_abxy.h Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_face_abxy.png Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_face_axby.h Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_face_axby.png Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_face_bayx.h Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_face_bayx.png Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_face_sony.h Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_face_sony.png Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_front.h Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_front.png Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_touchpad.h Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_touchpad.png Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_wired.h Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_wired.png Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_wireless.h Fixed permissions 2025-10-06 17:24:56 -07:00
gamepad_wireless.png Fixed permissions 2025-10-06 17:24:56 -07:00
gamepadutils.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
gamepadutils.h Updated copyright for 2026 2026-01-01 09:48:19 -08:00
glass.h Fixed permissions 2025-10-06 17:24:56 -07:00
glass.png Use PNG files for tests and examples 2025-10-06 16:45:53 -07:00
icon.h Fixed permissions 2025-10-06 17:24:56 -07:00
icon.png Fixed permissions 2025-10-06 17:24:56 -07:00
icon2x.png Fixed permissions 2025-10-06 17:24:56 -07:00
LICENSE.txt Updated copyright for 2026 2026-01-01 09:48:19 -08:00
logaudiodev.png Fixed permissions 2025-10-06 17:24:56 -07:00
loopwave.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
main.cpp Make WinRT's SDL_main header-only 2022-12-15 08:01:01 -08:00
moose.dat
msdf_font.csv windows: Fix stale zoom/iconic state in WM_WINDOWPOSCHANGED handler 2025-04-25 16:21:44 -07:00
msdf_font.png Fixed permissions 2025-10-06 17:24:56 -07:00
physaudiodev.png Fixed permissions 2025-10-06 17:24:56 -07:00
picture.xbm
pretest.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
relative_mode.markdown Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
sample.png Fixed permissions 2025-10-06 17:24:56 -07:00
sample.wav
sdl-test_round.png Fixed permissions 2025-10-06 17:24:56 -07:00
soundboard.png Fixed permissions 2025-10-06 17:24:56 -07:00
soundboard_levels.png Fixed permissions 2025-10-06 17:24:56 -07:00
speaker.png Fixed permissions 2025-10-06 17:24:56 -07:00
sword.wav examples/audio/04-multiple-streams: Remove drag-and-drop support. 2024-12-10 23:10:43 -05:00
template.test.in build: Fix testprocess invocation during "as-installed" tests 2024-09-25 14:48:26 -07:00
testasyncio.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testatomic.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testaudio.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testaudiohotplug.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testaudioinfo.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testaudiorecording.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testaudiostreamdynamicresample.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testautomation.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testautomation_audio.c isfinite is not available on all platforms, so add a bitmasking alternative 2025-12-08 20:48:47 +01:00
testautomation_blit.c Fixed build warning 2025-09-22 11:27:23 -07:00
testautomation_clipboard.c testautomation: use the correct return type for clipboard APIs 2025-09-21 23:27:59 -07:00
testautomation_events.c tests: Flush events after an SDL_WaitEvent() call 2025-09-19 12:36:59 -04:00
testautomation_guid.c SDL_test: use SDLCALL calling convention 2024-09-06 14:19:05 +02:00
testautomation_hints.c tests: port failing SDL_Hint tests from pysdl2 to testautomation 2025-04-01 21:31:10 +02:00
testautomation_images.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testautomation_images.h Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testautomation_intrinsics.c test/testautomation_intrinsics.c: Free variables before returning 2025-02-16 07:50:07 -08:00
testautomation_iostream.c iostream: Properly support the "x" mode for SDL_IOFromFile() 2025-10-06 13:23:42 -07:00
testautomation_joystick.c Try matching gamepad mappings with CRC first 2025-10-14 10:30:03 -07:00
testautomation_keyboard.c testautomation keyboard: use space instead of a 2024-11-08 07:01:50 -08:00
testautomation_log.c Added SDL_LogTrace() 2024-09-17 02:04:54 -07:00
testautomation_main.c tests: include SDL_build_config.h when HAVE_BUILD_CONFIG is defined 2024-12-29 20:08:06 +01:00
testautomation_math.c Fix check_stdlib_usage.py libc call matching 2025-11-25 01:07:10 +01:00
testautomation_mouse.c test: Fix mouse focus test on X11 2024-10-10 11:37:45 -04:00
testautomation_pixels.c Use PNG files for tests and examples 2025-10-06 16:45:53 -07:00
testautomation_platform.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_properties.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_rect.c emscripten tests: fix warning: uninitialized variable 2025-08-13 17:00:45 -07:00
testautomation_render.c render: an empty clip rect should clip all drawing 2026-05-29 13:59:23 -07:00
testautomation_sdltest.c fix integer overflow ub in testautomation_sdltest 2025-01-06 13:18:03 -05:00
testautomation_stdlib.c testautomation: Test SDL_snprintf() for doubles >LLONG_MAX and <ULLONG_MAX 2025-10-03 07:21:20 -07:00
testautomation_subsystems.c Verify that the subsystems were successfully initialized 2024-09-15 12:04:10 -07:00
testautomation_suites.h isfinite is not available on all platforms, so add a bitmasking alternative 2025-12-08 20:48:47 +01:00
testautomation_surface.c surface: verify surface palette in SDL_Save(BMP|PNG) before hitting the FS 2026-02-03 09:32:37 -08:00
testautomation_time.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_timer.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_video.c video: Windows keep any position set when in fullscreen after leaving fullscreen 2026-05-18 09:10:25 -07:00
testbounds.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testcamera.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testclipboard.c tests: Don't try to load unsupported image types in testclipboard 2026-01-14 11:01:31 -05:00
testcolorspace.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testcontroller.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testcustomcursor.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testdialog.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testdisplayinfo.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testdlopennote.c dlnote: embed trailing semicolon in SDL_ELF_NOTE_DLOPEN macro 2025-12-24 23:45:50 +03:00
testdraw.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testdrawchessboard.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testdropfile.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testerror.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testevdev.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testffmpeg.c Fixed memory leak in testffmpeg EGL codepath 2026-01-28 08:21:11 -08:00
testffmpeg_vulkan.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testffmpeg_vulkan.h Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testfile.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testfilesystem.c filesystem: Implement SDL_GetExeName() for all platforms. 2026-05-27 15:42:41 -04:00
testgeometry.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testgl.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testgles.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testgles2.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testgpu_simple_clear.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testgpu_spinning_cube.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testgpurender_effects.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testgpurender_effects_CRT.frag.dxil.h testgpurender_effects: use the grayscale algorithm from BT.709 2025-09-26 10:27:10 -07:00
testgpurender_effects_CRT.frag.hlsl Added an example of fullscreen shader effects with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_effects_CRT.frag.msl.h testgpurender_effects: use the grayscale algorithm from BT.709 2025-09-26 10:27:10 -07:00
testgpurender_effects_CRT.frag.spv.h testgpurender_effects: use the grayscale algorithm from BT.709 2025-09-26 10:27:10 -07:00
testgpurender_effects_grayscale.frag.dxil.h testgpurender_effects: use the grayscale algorithm from BT.709 2025-09-26 10:27:10 -07:00
testgpurender_effects_grayscale.frag.hlsl testgpurender_effects: use the grayscale algorithm from BT.709 2025-09-26 10:27:10 -07:00
testgpurender_effects_grayscale.frag.msl.h testgpurender_effects: use the grayscale algorithm from BT.709 2025-09-26 10:27:10 -07:00
testgpurender_effects_grayscale.frag.spv.h testgpurender_effects: use the grayscale algorithm from BT.709 2025-09-26 10:27:10 -07:00
testgpurender_msdf.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testgpurender_msdf.frag.dxil.h testgpurender_effects: use the grayscale algorithm from BT.709 2025-09-26 10:27:10 -07:00
testgpurender_msdf.frag.hlsl Added support for custom shaders with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_msdf.frag.msl.h Added support for custom shaders with the GPU renderer 2025-03-14 09:26:30 -07:00
testgpurender_msdf.frag.spv.h Added support for custom shaders with the GPU renderer 2025-03-14 09:26:30 -07:00
testhaptic.c Add and use SDL_HapticEffectID typedef 2025-04-24 08:51:55 -07:00
testhittesting.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testhotplug.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testiconv.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testime.c testime: use the correct properties when enabling text input 2026-04-27 10:55:11 -07:00
testintersections.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testkeys.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testloadso.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testlocale.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testlock.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testmanymouse.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testmessage.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testmodal.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testmouse.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testmultiaudio.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testnative.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testnative.h Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testnativecocoa.m fixed typo in prev. patch. 2023-07-28 07:35:04 +03:00
testnativew32.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testnativewayland.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testnativex11.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testoffscreen.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testoverlay.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testpalette.c Fix warning: strict prototypes (#14992) 2026-05-13 19:32:50 +03:00
testpen.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testplatform.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testpopup.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testpower.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testprocess.c Fixed testprocess on 32-bit Windows 2025-09-14 15:09:07 -07:00
testqsort.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testrelative.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testrendercopyex.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testrendertarget.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testresample.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testrotate.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testrumble.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testrwlock.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testscale.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testsem.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testsensor.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testshader.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testshape.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testsoftwaretransparent.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testsprite.c Reverted unintended testsprite changes 2026-02-02 16:01:02 -08:00
testspriteminimal.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testspritesurface.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testsurround.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testsymbols.c Static at beginning 2026-05-13 19:32:50 +03:00
testthread.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testtime.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testtimer.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testtray.c Use PNG files for tests and examples 2025-10-06 16:45:53 -07:00
testurl.c misc: Use the OpenURI D-Bus portal for opening URLs 2026-04-05 16:33:11 -04:00
testutils.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testutils.h Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testver.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testviewport.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testvulkan.c vulkan: Only enable KHR_portability_enumeration when available 2026-02-20 11:35:37 -05:00
testwaylandcustom.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testwm.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testyuv.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testyuv.png Fixed permissions 2025-10-06 17:24:56 -07:00
testyuv_cvt.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
testyuv_cvt.h Updated copyright for 2026 2026-01-01 09:48:19 -08:00
torturethread.c Updated copyright for 2026 2026-01-01 09:48:19 -08:00
trashcan.png Fixed permissions 2025-10-06 17:24:56 -07:00
unifont-15.1.05-license.txt Updated unifont to version 15.1.05 2024-06-27 17:43:03 -07:00
unifont-15.1.05.hex Updated unifont to version 15.1.05 2024-06-27 17:43:03 -07:00
utf8.txt