Sasha Szpakowski
486cc22dbd
prefer vulkan over opengl by default on windows/linux.
2024-12-10 19:44:39 -04:00
Sasha Szpakowski
bd6c90b65d
Fix a memory leak in TextBatch:add when the internal buffer is resized
2024-12-09 18:32:17 -04:00
Sasha Szpakowski
90b52df955
Fix 'sizenesw' system cursor
2024-12-09 18:30:27 -04:00
Sasha Szpakowski
58000b4e9e
love.graphics.print doesn't stop at \0
2024-12-01 14:29:54 -04:00
Sasha Szpakowski
fe4fc84659
vulkan: implement MSAA textures.
2024-12-01 14:23:13 -04:00
Sasha Szpakowski
2904ba7739
Fix Shader:getBufferFormat crashing instead of erroring when the buffer name doesn't exist in the shader.
2024-11-24 13:30:07 -04:00
Sasha Szpakowski
f8b1942ce4
opengl: fix scissor state when switching between a canvas and the screen while a scissor is active.
...
Fixes #2112 .
2024-11-16 00:08:06 -04:00
Sasha Szpakowski
383fec4ea5
Fix stale buffers being referenced by a SpriteBatch after resizing.
...
Fixes #2117 .
2024-11-09 23:33:34 -04:00
Sasha Szpakowski
a93eb5abc6
Fix icon and cursor rgba order
2024-11-01 17:09:42 -03:00
Sasha Szpakowski
819d9b7e7c
Fix the darken blend mode
2024-11-01 08:03:45 -03:00
Sasha Szpakowski
d099da1e3b
Fix setting window position
2024-10-25 18:52:46 -03:00
Sasha Szpakowski
b2785df437
Merge pull request #2097 from rfht/main
...
avoid segfault on OpenBSD by not accessing array at index -1
2024-10-21 22:08:05 -03:00
Sasha Szpakowski
2655a429ef
replace some macOS-specific event code with more generic code.
2024-10-21 21:46:17 -03:00
Sasha Szpakowski
d73036f44d
vulkan: safer cleanup on shutdown
2024-10-20 14:35:23 -03:00
Sasha Szpakowski
a6d29e4a76
Fix build
2024-10-20 13:00:41 -03:00
Sasha Szpakowski
88137d1b65
Add optional wait timeout parameter to love.event.pump.
...
Deprecate love.event.wait.
2024-10-20 12:43:29 -03:00
Sasha Szpakowski
b116857102
add love.exposed and love.occluded event callbacks.
...
Add love.window.isOccluded.
Resolves #2004 .
2024-10-19 13:41:34 -03:00
Sasha Szpakowski
6e82633b56
love.visible is called when minimizing/unminimizing the window.
2024-10-19 12:33:42 -03:00
Sasha Szpakowski
d3cd2aef36
love.window.isVisible also checks if the window is minimized.
2024-10-19 11:26:17 -03:00
Sasha Szpakowski
337d8fa048
remove source code support for SDL2
2024-10-18 20:22:26 -03:00
Sasha Szpakowski
caca6196fc
make sure non-app common paths are canonicalized.
2024-10-17 20:56:48 -03:00
Sasha Szpakowski
31ce65b9d2
Fix love.resize when SDL3 is used
...
Also fixes #2100 .
2024-10-14 22:34:24 -03:00
Sasha Szpakowski
b69a22dca3
sync window state in love.window.minimize
2024-10-14 17:37:56 -03:00
Miku AuahDark
72d865eedc
Android: Fix error when trying to open .love file through "Load .love File".
2024-10-13 13:54:37 +08:00
Miku AuahDark
86bb7ba0ae
Android: Initial SDL3 support.
2024-10-12 19:44:54 +08:00
Sasha Szpakowski
5383390937
vulkan: fix initialization when SDL3 is used
2024-10-11 18:59:32 -03:00
Sasha Szpakowski
8227b7bcba
iOS: fix compile errors when SDL3 is used
2024-10-08 17:05:39 -03:00
Sasha Szpakowski
28393cdfd5
Fix compilation on Windows when SDL3 is used
2024-10-06 20:27:59 -03:00
Sasha Szpakowski
e986160431
Use SDL3-compatible SDL includes when SDL3 headers are available
2024-10-06 20:27:28 -03:00
Sasha Szpakowski
20b527f2ab
Fix compile errors when SDL2 is used
2024-10-06 17:08:35 -03:00
Sasha Szpakowski
dda7603d0d
update SDL3 codepaths to work with 3.1.
2024-10-06 16:53:09 -03:00
Sasha Szpakowski
e1494d4ad2
revert to previous names for a couple graphics enums
2024-10-03 12:42:11 -03:00
Sasha Szpakowski
eeec2429e2
vulkan: use subpass dependencies for layout transitions when switching canvases.
2024-09-30 23:04:58 -03:00
Sasha Szpakowski
3a6833ffb5
fix compile error
2024-09-30 20:15:11 -03:00
Sasha Szpakowski
1ee89154c0
vulkan: memory barrier after compute dispatches.
2024-09-30 19:58:45 -03:00
Sasha Szpakowski
64e4eaec74
vulkan: memory barriers for buffer copy/write operations.
2024-09-30 14:43:27 -03:00
Sasha Szpakowski
6d40eab097
vulkan: slightly improve memory placement for fullscreen canvases.
2024-09-29 17:00:10 -03:00
Sasha Szpakowski
8e6efac595
vulkan: fix a crash when the window has no depth or stencil.
2024-09-28 18:30:26 -03:00
Sasha Szpakowski
a16db4fb72
metal: fix a crash when the window has no depth or stencil.
2024-09-28 18:23:09 -03:00
Sasha Szpakowski
ef252b7d0f
vulkan: possible fix for validation error when sampling an int texture
2024-09-27 19:57:44 -03:00
Sasha Szpakowski
d185eb8218
vulkan: fix validation errors when generating mipmaps for a compute-writable texture.
2024-09-27 19:50:11 -03:00
Sasha Szpakowski
876625d7e3
move common shader:send texture/buffer code to platform-agnostic layer.
...
Fixes issues in the Metal backend when a shader using a readonly buffer is created.
2024-09-19 22:41:31 -03:00
Sasha Szpakowski
0a552ef352
mesh and spritebatch attributes reuse buffer bindings when possible.
2024-09-11 18:46:21 -03:00
Sasha Szpakowski
2c288715d4
metal: fix vertex attribute locations not being set correctly.
2024-09-08 15:08:10 -03:00
Sasha Szpakowski
247effb43b
Fix vertex input check looking at builtin vertex inputs.
2024-09-07 19:22:34 -03:00
Sasha Szpakowski
50ff1e4d2b
use location numbers for vertex input attributes, instead of name-based binding.
...
- add 'location' named field to buffer and mesh vertex format tables, replaces 'name' field.
- location numbers are expected to match 'layout (location = #)' qualifiers in vertex inputs in shader code.
- deprecate vertex inputs in shader code that don't have layout location qualifiers.
- love's default vertex attributes use location 0 for position, 1 for texcoord, and 2 for color.
- add new variants of Mesh:attachAttribute, setAttributeEnabled, and isAttributeEnabled which take location numbers instead of names.
Improves draw performance in vulkan and metal backends.
2024-09-07 18:06:03 -03:00
Sasha Szpakowski
c7b4ebbc55
newShader validates overlapping vertex input locations.
2024-09-07 17:36:34 -03:00
Sasha Szpakowski
cbadb06182
lower max vertex attributes from 32 to 30, some platforms don't support that many
2024-09-07 17:35:56 -03:00
Sasha Szpakowski
6c67835b6a
vulkan: fix typo in error message
2024-09-07 17:35:15 -03:00
Sasha Szpakowski
26a7389a4d
add internal function to pack blend state into 32 bits.
2024-09-07 17:34:10 -03:00