Commit Graph

5688 Commits

Author SHA1 Message Date
Erin Maus 6411883565 Add tests for new relaxed storage restrictions. 2026-07-23 06:22:48 -04:00
Erin Maus d9ee9a40ac Add new Graphics::Features. 2026-07-23 06:22:48 -04:00
Erin Maus 7d09352e94 Relax storage restrictions on vertex/pixel shaders. 2026-07-23 06:22:48 -04:00
Sasha Szpakowski 8c18d3ce8e vulkan: slightly more robust initialization 2026-07-19 10:39:55 -03:00
Sasha Szpakowski 2dacd058f4 allow vulkan backend even when wireframe or anisotropic filtering aren't supported.
Related: #2335.
2026-07-18 17:14:38 -03:00
Sasha Szpakowski 8cd9cdd3ac love.window.setMode shows a popup if internal graphics initialization fails.
Related: #2335.
2026-07-18 10:57:13 -03:00
Sasha Szpakowski 57e8330a64 vulkan: improve error handling when setMode fails 2026-07-18 10:55:16 -03:00
Sasha Szpakowski 81eb4dbcaf Fix compilation on macOS/iOS 2026-07-16 14:01:38 -03:00
Sasha Szpakowski 0b665880e8 Merge pull request #2338 from TotoEnF5/qoi
Feat: QOI image format
2026-07-16 13:29:42 -03:00
TotoEnF5 16b33a94aa QOI: add failsafe if data is shorter than header 2026-07-16 10:29:49 +02:00
TotoEnF5 34079d008c Add qoi license 2026-07-15 11:21:03 +02:00
TotoEnF5 82ceb3121f Add QOI image format support 2026-07-15 11:11:14 +02:00
Sasha Szpakowski e47acd766d Show a popup error if love.window loads but love.graphics does not.
Also include backend-specific errors in graphics initalization error messages.
Improves visibility of errors related to vulkan/metal/opengl initialization.
Related to #2335.
2026-07-12 11:01:02 -03:00
Sasha Szpakowski 540e681454 vulkan: fix validation errors when VK_EXT_full_screen_exclusive is used 2026-07-05 11:11:19 -03:00
Sasha Szpakowski 4758d54af6 vulkan: handle swap chain surface loss errors. 2026-07-05 10:50:22 -03:00
Sasha Szpakowski 51114ee01c use SDL for love.window.getSafeArea implementation. 2026-07-01 15:17:07 -03:00
Sasha Szpakowski 0f95aea730 metal: remove unused legacy code for old OS support 2026-07-01 14:35:41 -03:00
Sasha Szpakowski cad88c0098 metal: improve newTexture performance for non-canvas textures when there's no initial data provided. 2026-07-01 14:20:25 -03:00
Sasha Szpakowski fc0cb61c6c metal: improve canvas creation performance.
Prefer initializing textures by using a render target clear rather than a blank data upload, when possible.
2026-07-01 14:03:20 -03:00
Sasha Szpakowski fc98c7d2e1 android: attempt to use vulkan by default when vulkan 1.1+ is supported. 2026-06-28 19:15:40 -03:00
Sasha Szpakowski eb44cf54a7 Merge pull request #2330 from erinmaus/inverse-of
Add 'inverseOf' to love.Transform
2026-06-24 21:03:03 -03:00
Erin Maus 66fafaaaf3 Use getMatrix().inverse() instead of heap allocation. 2026-06-24 19:37:04 -04:00
Erin Maus 574295064b Add 'inverseOf' to love.Transform. 2026-06-24 12:30:12 -04:00
Sasha Szpakowski 84fe074d06 vulkan+windows: tell the driver we don't want exclusive fullscreen, when in desktop-fullscreen mode. 2026-06-21 21:32:35 -03:00
Sasha Szpakowski 52c6b886cf TextBatch:getWidth/getHeight can return fractional numbers 2026-06-21 20:38:25 -03:00
Sasha Szpakowski 061f96fab1 Possibly fix Linux compile error 2026-06-21 16:40:11 -03:00
Sasha Szpakowski 7d49d880d7 Improve truetype font text positioning with fractional glyph advances and DPI-scaled coordinates.
Disallow Font:setFallbacks for fonts that have different DPI scales.
It's still too easy to render text at a non-integer pixel when fractional DPI scales are used, so maybe a more thorough redesign would be useful.

Fixes #2318.
Fixes #2168.
2026-06-21 16:30:43 -03:00
Sasha Szpakowski a7679a5509 default error handler's text is positioned better for fractional DPI scales
maybe we need a snapToPixel function in the future, if we stick with this DPI scaling model...
2026-06-21 16:16:38 -03:00
Sasha Szpakowski 02c6a3053f metal: fix compile error 2026-06-21 15:16:53 -03:00
Sasha Szpakowski 142ce87335 graphics: improve setScissor's handling of fractional DPI-scaled coordinates. 2026-06-21 14:58:22 -03:00
Sasha Szpakowski 3eedfb6e1e replace love.window.requestAttention implementation with SDL_FlashWindow. 2026-06-18 21:13:19 -03:00
Sasha Szpakowski a3dae27a72 Disallow requiring love.graphics and love.window in threads. 2026-06-18 20:49:08 -03:00
Sasha Szpakowski 4b43c74a29 remove some redundant code.
SDL3's default behaviour matches what love does with the hint, so the code isn't needed.
2026-06-18 20:09:18 -03:00
Sasha Szpakowski 2f8c88c218 vulkan: explicitly specify triple-buffering instead of minBuffers+1. 2026-06-14 21:28:35 -03:00
Sasha Szpakowski 8884fb3f10 graphics: clean up some shared backbuffer settings code. 2026-06-14 19:31:40 -03:00
Sasha Szpakowski 6b144d3494 vulkan: add more detail to some error messages 2026-06-14 16:48:34 -03:00
Sasha Szpakowski f1a55bc36d CI: use vs2026 when building for Windows 2026-06-13 15:59:33 -03:00
Sasha Szpakowski 515cae1818 windows cmake: convert path separators to cmake's expected ones when installing extra dlls 2026-06-13 15:58:26 -03:00
Sasha Szpakowski f4e81fbb5f metal: fix love.graphics.clear not working in some situations.
Fixes #2327.
2026-06-10 21:07:16 -03:00
Sasha Szpakowski e13fd06e59 Fix love.graphics.newBuffer not showing the right error message when there's no window. 2026-06-06 10:27:43 -03:00
Sasha Szpakowski c95b8cf790 graphics: add rgb10a2ui pixel format. 2026-05-31 21:45:30 -03:00
Sasha Szpakowski b4f6bcfc67 Add refreshrate field to love.window.getFullscreenModes table entries. 2026-05-29 22:46:33 -03:00
Sasha Szpakowski 83ebf679b5 love.window.setFullscreen(true, "exclusive") always uses the desktop's display mode.
This avoids switching the display mode when toggling fullscreen or alt-tabbing, after toggling fullscreen.
2026-05-29 22:05:22 -03:00
Miku AuahDark 06e8da722c Revert "Run Windows runners on Windows Server 2022."
This reverts commit 454f56f176.
2026-05-20 19:20:02 +08:00
Miku AuahDark 454f56f176 Run Windows runners on Windows Server 2022.
GitHub trying to keep their Visual Studio version stable? Impossible.
* actions/runner-images#14017
* actions/runner-images#14004
2026-05-20 19:11:39 +08:00
Sasha Szpakowski 9653b42522 Merge pull request #2320 from Syyrion/zlib-decompress-fix
Fix zlib decompression incomplete data check
2026-05-18 11:42:10 -03:00
Syyrion 189eb51a38 fix incomplete data check 2026-05-17 15:02:58 -04:00
Sasha Szpakowski 7bdef86d3c fix love.graphics.newBuffer not requiring locations for vertex buffer formats. 2026-05-04 20:20:33 -03:00
Sasha Szpakowski db54893780 mac/iOS: fix build 2026-05-02 16:18:45 -03:00
Sasha Szpakowski f542481995 vulkan/metal: fix Shader:send(name, DataObject) truncating the data in some cases.
Fixes #2313
2026-05-02 16:06:08 -03:00