Commit Graph

5697 Commits

Author SHA1 Message Date
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
Miku AuahDark f02ec397ac Initialize the value of "null" Source object members.
Fixes #2160.
2025-03-02 19:52:18 +08:00
Sasha Szpakowski 5365894260 Fix initial return value of love.keyboard.isDown 2025-03-01 14:52:02 -04:00
Sasha Szpakowski 0f30269cf5 vulkan: possible fix for volume texture mipmap generation 2025-02-26 20:22:34 -04:00
Humberto Dias 1462bd47cf Build Linux ARM64 AppImage (#2154) 2025-02-18 19:25:19 +08:00
Sasha Szpakowski 2d65274ae6 Improve error message when require fails to load a dll. 2025-02-09 14:11:57 -04:00
Sasha Szpakowski f5631fd83a fix tests on Windows when the display scale is > 100%. 2025-02-08 23:08:59 -04:00
Sasha Szpakowski 34affbd1ac tests: fix love.filesystem mounting 2025-02-08 23:05:35 -04:00
Sasha Szpakowski f03cf6a88f love.filesystem mount APIs return false if the path is already mounted.
Fixes #2153.
2025-02-08 22:03:19 -04:00
Sasha Szpakowski 19681f1a75 nogame: resizing doesn't change existing cloud shapes 2025-02-08 20:25:27 -04:00
Sasha Szpakowski 2cc2b65358 Fix typo 2025-02-08 16:46:37 -04:00
Sasha Szpakowski 8900a72ac4 The main loop runs while resizing or moving the window, on Windows.
Add love.event.setModalDrawCallback to override the function that's called during those resize/move operations.

Fixes #2148.
2025-02-08 16:32:30 -04:00
Sasha Szpakowski b20a0b81a4 nogame: fix duckloon disappearing for a short time after a resize 2025-02-04 23:12:56 -04:00
Sasha Szpakowski 5d514718b8 Call collectgarbage() after love.resize. 2025-02-04 22:21:39 -04:00
Sasha Szpakowski bda679d629 vulkan: fix extra redundant swapchain recreation happening on resize. 2025-02-02 17:05:48 -04:00
Sasha Szpakowski 0e5133e1f7 vulkan: prefer native drivers over vulkan-on-d3d12. 2025-02-02 11:13:09 -04:00
Sasha Szpakowski cc88b94ac4 vulkan: pick the first device with the highest score when multiple have the same score. 2025-02-02 10:57:22 -04:00
Sasha Szpakowski 2e0b85a005 update volk library to zeux/volk@362e53e 2025-02-02 10:30:50 -04:00
Sasha Szpakowski 244ba44b8b update vulkan headers 2025-02-02 10:29:57 -04:00
Sasha Szpakowski 8ec5898f9c Merge pull request #2147 from Papaew/window_icon_fix
Fixed delay in changing window icon on boot
2025-02-01 17:12:05 -04:00
Sasha Szpakowski 25a2753b72 vulkan: fix 1 frame delay of backbuffer resize
Fixes #2128.
2025-02-01 17:08:33 -04:00
UnevenBird e9b3440b50 Fixed delay in changing window icon on boot 2025-02-01 11:20:38 +04:00
Sasha Szpakowski 0d21908b7e vulkan: fix vkResetDescriptorPool validation error 2025-01-31 22:52:23 -04:00
Miku AuahDark 0f39eeb73c Update lua-https to love2d/lua-https@121d651. 2025-01-30 19:15:32 +08:00
Miku AuahDark dc1fca374e Update lua-https to love2d/lua-https@5b6ecab. 2025-01-30 12:07:26 +08:00
Sasha Szpakowski a53d68b723 vulkan: fix texture descriptor type in descriptor pools. 2025-01-26 17:29:18 -04:00
Sasha Szpakowski 5c63a945b8 Fix typo 2025-01-26 16:54:03 -04:00
Sasha Szpakowski 92e79ab609 vulkan: reduce memory usage when many shaders are being used with many draw calls.
Descriptor pools are now shared among shaders that have the same descriptor counts, instead of being unique per shader.
2025-01-26 14:45:51 -04:00
Sasha Szpakowski 32bd2bdaad opengl: fix color masks not using proper GLboolean values 2025-01-25 23:09:56 -04:00
Sasha Szpakowski 3412a4defc Improve format fallbacks when using setCanvas with automatic depth/stencil. 2025-01-25 13:25:20 -04:00
Sasha Szpakowski dd3ebae7a1 vulkan: don't try to enable anisotropic filtering if anisotropy is 1. 2025-01-25 12:50:57 -04:00
Sasha Szpakowski 324b0f831b vulkan: improve error messages 2025-01-25 12:11:58 -04:00
Sasha Szpakowski 38168d4857 Handle internal SDL_EVENT_FINGER_CANCELED events. 2025-01-24 22:27:34 -04:00
Sasha Szpakowski 5b4ced266d Avoid luaL_checkint and luaL_optint, they're not available in Lua 5.4.
Fixes #2102.
2025-01-18 20:37:53 -04:00
Sasha Szpakowski 4e8291fd7e love.system.openURL implementation uses SDL_OpenURL. 2025-01-18 18:19:05 -04:00
Miku AuahDark bff50070c6 Android: Support content:// URI in love.filesystem.mountFullPath. 2025-01-16 17:06:03 +08:00
Miku AuahDark cb27e30879 Android: Cleanup and remove usage of love:// custom protocol.
Let SDL3 handle content:// URI support instead.
2025-01-16 17:04:27 +08:00
Miku AuahDark be21958ab3 Don't canonicalize paths fom SDL file dialog callbacks.
If love.filesystem.openNativeFile can't open them, then it's SDL issue, not LOVE.
This is also needed because Android returns content:// URIs instead of regular paths.
2025-01-16 16:54:23 +08:00