Commit Graph

5584 Commits

Author SHA1 Message Date
snippet a8ed7ac7d9 Remove code added accidently for testing 2025-10-01 18:43:01 +10:00
snippet aac28466ac Merge branch 'main' of https://github.com/musshorn/love 2025-10-01 18:40:45 +10:00
snippet 7b64f24a31 Expose more battery and power connection state 2025-10-01 18:40:11 +10:00
snippet 1a2a3370d0 Expose more battery and power connection state 2025-09-27 13:50:31 +10:00
Sasha Szpakowski 8afcf3a44b Merge pull request #2220 from lucenthropic/main
Add love.system.getMemorySize
2025-09-16 00:14:25 -03:00
Sasha Szpakowski 381b4b8621 CI: use windows-2025 image 2025-09-15 22:00:56 -03:00
Sasha Szpakowski f52811699c windows CI: install nsis 2025-09-15 22:00:48 -03:00
Lu afa9f711a8 Add love.system.getMemorySize 2025-09-15 12:06:30 -04:00
Sasha Szpakowski 5903ad8901 Merge pull request #2211 from itzKiwiSky/main
Fix crash with setStencilTest for compatibility
2025-08-16 14:45:30 -03:00
KiwiSky 8478bbff16 removed comment 2025-08-16 10:05:26 -03:00
itzKiwiSky fbc8e4e3d1 fix stencilTest nil crash 2025-08-04 17:34:51 -03:00
itzKiwiSky 3f76e7dee3 fix stencilTest nil crash 2025-08-04 17:34:37 -03:00
Sasha Szpakowski 36f368fa70 Fix accidental lua stack modification in love.event.push.
Fixes #2210.
2025-08-03 17:11:49 -03:00
Sasha Szpakowski 305082b6e9 font rasterizer: initialize advance and descent metrics for BMFont and image font rasterizers.
Fixes #2209.
2025-08-01 22:14:25 -03:00
Sasha Szpakowski e5055d3cc2 vulkan: fix graphics state if readbackBuffer is called while a canvas is active. 2025-08-01 21:25:38 -03:00
Sasha Szpakowski 1c8d34ac27 vulkan: generate shader debug info when LOVE_GRAPHICS_DEBUG is set. 2025-07-26 15:22:40 -03:00
Sasha Szpakowski 62f9a6e92b Merge pull request #2207 from BytesHaven/update-copyright-date
Update copyright notice with correct year
2025-07-21 00:33:44 -03:00
John Doe 6f08eb94c6 Update copyright notice with correct year 2025-07-12 23:19:22 +01:00
Sasha Szpakowski 201dc2ae46 Merge pull request #2206 from BytesHaven/update-cmake-version
Update cmake minimum version to 3.19
2025-07-12 15:24:18 -03:00
John Doe ef48405d72 Update cmake minimum version to 3.19 2025-07-12 16:40:47 +01:00
Miku AuahDark 6cab1a10fc Android: Fix filesystem initialization when fused. 2025-06-30 15:38:26 +08:00
Miku AuahDark 029b14d6b3 Android: Fix safe area crash.
Fixes love2d/love-android#277.
2025-06-30 13:53:30 +08:00
Miku AuahDark cdf68b3228 Linux CI: Install wayland and pipewire development libraries. 2025-06-24 12:16:17 +08:00
Sasha Szpakowski e7dd8c84ba Limit live-resize redraws to only happen during actual live-resize situations. 2025-06-22 17:01:40 -03:00
Sasha Szpakowski 0020317dc4 opengl: fix compressed 2d texture uploads. 2025-06-19 22:41:05 -03:00
Sasha Szpakowski 11fe64d6fd opengl: clean up some texture initialization code 2025-06-19 22:07:32 -03:00
Sasha Szpakowski 1f1728c333 update glslang to KhronosGroup/glslang@05cfcc1
Fixes #2194.
2025-06-15 16:16:26 -03:00
Miku AuahDark f19ebafa50 Audio: Fix extension name in ALC_EXT_disconnect extension check. 2025-06-10 20:27:32 +08:00
Miku AuahDark 24dfbad024 Windows: Prefer OpenGL on Windows ARM64.
Closes #2196.
2025-06-10 20:25:27 +08:00
Sasha Szpakowski 0111d70ead Fix quit events being dropped if they're processed during a modal draw.
Forward quit data to the next full event processing cycle, and skip love.quit callbacks being called for a second time in that case.
2025-05-31 23:23:53 -03:00
Sasha Szpakowski 4770ca009d Fix value parameter in love.graphics.setStencilMode. 2025-05-10 12:56:32 -03:00
Sasha Szpakowski 4e49a8db76 Move most of the sleep in the default error handler into love.event.pump.
This lets event processing run faster when needed, which avoids some stutters when the window is dragged or resized on Windows.
2025-05-07 22:01:41 -03:00
Sasha Szpakowski 57d22d4c4d Fix a crash when an error happens inside a modal/live-resize draw.
Fixes #2179.
2025-05-07 21:53:57 -03:00
Sasha Szpakowski 7883c90c77 love.event.pump uses SDL_PeepEvents instead of SDL_PollEvent to grab remaining events after the first one.
Fixes #2183. Also reduces stuttering when moving or resizing on Windows.
2025-05-07 19:37:14 -03:00
Sasha Szpakowski 273daf3c0f Only allow modal draws (live-resize callbacks) inside love.event.pump.
Fixes #2186.
2025-05-07 19:30:27 -03:00
Sasha Szpakowski d2d91430ed Add support for toggling audio output spatialization (HRTF). Disabled by default.
Add love.audio.setOutputSpatialization(enable [, filtername]).
Add enabled, filtername = love.audio.getOutputSpatialization().
Add filterlist = love.audio.getOutputSpatializationFilters().

Additional filters (HRTFs) can currently be added via the data files and search paths OpenAL Soft uses.

Resolves #1699.
2025-05-06 22:41:12 -03:00
Sasha Szpakowski f50558bb1d audio: remove AL_DIRECT_CHANNELS usage.
It only works sometimes and it conflicts with toggling spatialization / HRTF output globally.
2025-05-06 22:38:26 -03:00
Sasha Szpakowski 9c5473fc02 love.graphics.getFont errors if there's no graphics context.
Fixes #2176.
2025-04-16 21:10:33 -03:00
Sasha Szpakowski 6a972eec8e Fix Joystick:getGamepadType when the gamepad is disconnected. 2025-04-12 17:03:50 -03:00
Sasha Szpakowski 5c1c23fec6 Fix Joystick:setVibration return value 2025-04-12 16:59:07 -03:00
Sasha Szpakowski dfdbe79138 The default error handler is assigned to love.errorhandler. 2025-04-07 20:59:47 -03:00
Sasha Szpakowski ae2e68f414 vulkan: populate oldSwapchain field during swap chain creation. Also fix crash if window is already closed, when quitting.
Fixes #2174
2025-04-07 20:56:22 -03:00
Sasha Szpakowski de5495bb03 reduce possibility of errors in love code when overwriting built-in lua APIs 2025-03-31 19:13:25 -03:00
Sasha Szpakowski 58a42e2c35 metal: fix incorrect default values for missing int and color vertex attributes.
Fixes #2169.
2025-03-23 09:43:02 -03:00
Sasha Szpakowski 5067179715 Add love.keyboard.isScreenKeyboardVisible. 2025-03-22 19:00:52 -03:00
Sasha Szpakowski a9fca2e0ff update VMA to 3.2.1. Fixes assert when running with vulkan 1.4. 2025-03-09 16:57:49 +01:00
Sasha Szpakowski f3dc86c8fa vulkan/opengl: fix reported texture memory usage of texture views. 2025-03-08 12:47:50 +01:00
Sasha Szpakowski 0ae90f3015 CI: clean up linux test names 2025-03-02 17:20:47 -04:00
Miku AuahDark 0274cda535 Fix compile error due to usage of undefined FLT_MAX. 2025-03-02 20:22:42 +08:00
Miku AuahDark 41bfb44c55 Fix Linux compile error. 2025-03-02 20:10:37 +08:00