Commit Graph

4622 Commits

Author SHA1 Message Date
Sasha Szpakowski 5112345893 Fix the first TextBatch:set call uploading vertices twice. 2024-06-18 22:19:40 -03:00
Sasha Szpakowski 4c778fa878 Fix typo 2024-06-17 21:13:06 -03:00
Sasha Szpakowski bfc4212f30 Remove NormalMatrix shader uniform.
It doesn't provide much value given its costs. It also didn't work properly with auto-batched draws.
2024-06-17 20:57:28 -03:00
Sasha Szpakowski e180b256b8 vulkan: fix cull mode in quad drawing code 2024-06-17 17:08:31 -03:00
Sasha Szpakowski 78f8cfc4dc Add Shader:getBufferFormat.
Returns a table with the same setup as the data format table used with love.graphics.newBuffer.
2024-06-16 17:07:34 -03:00
Sasha Szpakowski 12bbadb0fa replace 'onesided' bool in EdgeShape constructors with prev/next vertex coordinates. 2024-06-16 11:17:46 -03:00
Sasha Szpakowski 946579a903 Fix delete key not using the right name 2024-06-15 20:11:24 -03:00
Sasha Szpakowski 6869737a3f vulkan: recognize more vendor ids for love.graphics.getRendererInfo 2024-06-15 15:40:48 -03:00
Sasha Szpakowski 8e67fd5861 metal: fix compile error 2024-06-15 15:02:44 -03:00
Sasha Szpakowski 2eb8198dba metal/vulkan: fix uniform numbers and vectors in arrays of structs. 2024-06-15 14:46:27 -03:00
Sasha Szpakowski d13a7f7620 Fix missing deprecated Shape:getShape method. 2024-06-07 17:38:08 -03:00
Sasha Szpakowski a23d53183e key press events and love.keyboard support arbitrary non-ascii key constants.
Closes #2012.
2024-06-01 21:21:20 -03:00
Sasha Szpakowski 9473c8d710 vulkan: fix validation error when creating a non-square array texture. 2024-05-05 09:40:28 -03:00
Sasha Szpakowski 03f364e131 graphics: bind internal depth-compare textures to unbound sampler2DShadow vars. 2024-05-03 20:56:13 -03:00
Sasha Szpakowski a894c2f6a4 vulkan: fix validation errors related to scissors when drawing. 2024-05-03 20:24:25 -03:00
Sasha Szpakowski 8d8cf317d5 opengl+windows: work around a performance issue with lines. 2024-05-02 18:05:42 -03:00
Miku AuahDark 629fc1c581 Android: Use mode a+rwx for directories and a+rw for files in external storage path.
Issue love2d/love-android#269.
2024-04-27 12:38:30 +08:00
Sasha Szpakowski 0089749ad0 metal: work around texture swizzle bug in the github runner VM 2024-04-26 20:40:37 -03:00
Sasha Szpakowski 1e2696b403 improve errors when openal fails to initialize 2024-04-25 18:23:58 -03:00
Miku AuahDark 329796d3ba Android: Fix inconsistency issue with t.externalstorage. 2024-04-25 12:36:43 +08:00
Miku AuahDark 8cdbeb20b9 Fix compile error from previous commit. 2024-04-25 12:04:33 +08:00
Miku AuahDark 4270985df1 Android: Fix missing directories and files with externalstorage when trying to browse it through MTP. 2024-04-25 11:54:13 +08:00
Sasha Szpakowski 58f05eb000 fix incorrect errors when using an integer format ImageData 2024-04-18 20:32:21 -03:00
Sasha Szpakowski 3a672387e4 Error if Texture:generateMipmaps is called on an active canvas. 2024-04-14 11:31:46 -03:00
Sasha Szpakowski e04b5f931d Move internal auto-generation for canvas mipmaps to high level code. 2024-04-14 11:31:10 -03:00
Sasha Szpakowski c5feaa3dfa Fix missing depth formats in love.graphics.getTextureFormats. 2024-04-13 17:06:06 -03:00
Sasha Szpakowski 59e18df392 metal: fix varying matrices and arrays. 2024-04-13 16:48:44 -03:00
Sasha Szpakowski 4a0e24c415 metal: fix integer pixel formats not claiming support for sampling. 2024-04-13 16:48:22 -03:00
Sasha Szpakowski 1f0f2a0781 vulkan: fix detection of linear filter support for pixel formats 2024-04-12 18:00:09 -03:00
Sasha Szpakowski e92df0a231 vulkan: fix shader creation when using a varying matrix. 2024-04-12 17:52:37 -03:00
Sasha Szpakowski 4b3fdc2317 vulkan: fix a crash in the error screen 2024-04-11 22:44:47 -03:00
Sasha Szpakowski 111bbde32d vulkan: fix shaders with int vertex attributes when nothing using that attribute is drawn. 2024-04-11 22:35:43 -03:00
Sasha Szpakowski ad0526d97d Fix videos not setting their textures in the first frame, on some backends. 2024-04-09 21:18:11 -03:00
Sasha Szpakowski b01ff0e8ee opengl: fix GL errors when MSAA is enabled for the window. 2024-04-09 17:33:11 -03:00
Sasha Szpakowski bb9fb54ef4 Merge pull request #2053 from nikeinikei/main
vulkan: fix incorrect scissor when rendering to a canvas
2024-04-09 13:53:19 -03:00
niki 15c14c69b4 vulkan: correct scissor extent calculation 2024-04-09 18:04:54 +02:00
niki 869cb23314 vulkan: fix incorrect scissor when rendering to a canvas 2024-04-09 17:31:04 +02:00
Sasha Szpakowski 7f37a7ddbe metal: fix texture uploads in the middle of a render pass stopping the pass' subsequent draws from working. 2024-04-08 22:10:11 -03:00
Sasha Szpakowski 6bc91a025c metal: fix backbuffer discarding its contents in some situations.
fixes #1975.
2024-04-08 20:11:47 -03:00
Sasha Szpakowski d40b78be76 vulkan: fix shader cross-stage io (varying) location mapping. 2024-04-08 17:59:06 -03:00
Sasha Szpakowski 994079e76d Mesh:getVertexFormat uses named fields, to match the new format syntax in newMesh. 2024-04-08 12:20:07 -03:00
Sasha Szpakowski 8140817107 vulkan: fix a crash on minimization.
Use a fake backbuffer when the system reports 0 for swap chain dimensions.
2024-04-07 17:25:46 -03:00
Sasha Szpakowski 2bc9777c3b vulkan: limit render pass layout transitions to the active mipmap/layer. 2024-04-07 09:48:54 -03:00
Sasha Szpakowski 1692573be6 vulkan: fix image layout mismatches when generating mipmaps and when copying from a buffer. 2024-04-07 09:13:21 -03:00
Sasha Szpakowski 92a03719e2 vulkan: fix validation errors when a resource is declared in multiple stages. 2024-04-06 21:38:12 -03:00
Sasha Szpakowski aded2621a3 vulkan: use uniform shader stage masks when setting up descriptor set layouts. 2024-04-06 20:24:10 -03:00
Sasha Szpakowski 455d02c695 vulkan/metal: fix a typo preventing non-array struct field uniforms from working. 2024-04-06 09:46:40 -03:00
Sasha Szpakowski 1d9d3346c5 windows: prefer regular vsync instead of dwm flush syncs.
The latter can cause stuttering issues on some setups.
2024-04-05 22:30:58 -03:00
Sasha Szpakowski e08004d338 vulkan: fix uniform vec3 array alignment 2024-04-01 23:06:19 -03:00
Mark Jansen a689d8e450 Fix building love on Windows for SDL3-3.1.0 2024-04-01 19:26:52 +02:00