Commit Graph

3476 Commits

Author SHA1 Message Date
Alex Szpakowski a431e70179 metal: add internal compute encoder APIs 2021-12-24 18:56:21 -04:00
Alex Szpakowski bcd64fe537 metal: implement mesh cull modes 2021-12-24 18:46:06 -04:00
Alex Szpakowski dab174b120 metal: fix a couple compiler warnings 2021-12-24 18:04:11 -04:00
Alex Szpakowski 7eb8366b2d metal: integer texture format support. 2021-12-24 17:50:17 -04:00
Alex Szpakowski 304b569a39 metal: tag texture formats with compute write support 2021-12-24 17:45:05 -04:00
Alex Szpakowski 7a910484c3 Fix compilation 2021-12-24 16:45:23 -04:00
Alex Szpakowski 3d8117ccbb Merge branch '12.0-development' into metal 2021-12-24 15:35:18 -04:00
Alex Szpakowski e63025b74f Merge branch '12.0-development' into metal 2021-12-24 15:34:05 -04:00
Alex Szpakowski 185b53421a Fix function declaration type mismatch (didn't cause any errors). 2021-12-24 11:41:12 -04:00
Alex Szpakowski c8038f22df Merge branch 'main' into 12.0-development 2021-12-24 11:35:35 -04:00
Alex Szpakowski cee8f8ae48 Fix a compiler warning 2021-12-24 11:26:11 -04:00
Miku AuahDark ede0ad0a20 Fix ENet error on certain system with >48-bit pointers.
Fixes love2d/love-android#222
2021-12-19 09:47:45 +08:00
megagrump b359311832 accept Data objects in newFileData 2021-12-13 09:20:17 +01:00
Miku AuahDark 380cc1033e Change luax_runwrapper chunk name prefix. 2021-12-12 09:34:08 +08:00
Miku AuahDark fb815edc28 Change luaL_loadbuffer chunkname with prefixes. 2021-12-12 09:23:00 +08:00
Alex Szpakowski 7e271fc53e Use SDL's rumble APIs for Joystick:setVibration, when available.
Fixes #1756
2021-12-11 11:52:42 -04:00
Alex Szpakowski ebd5f13456 Fix missing ByteData:clone and DataView:clone implementations.
Fixes #1754
2021-12-07 19:51:40 -04:00
Alex Szpakowski 7310fde7b9 glslang: fix compilation on certain newer compilers
This is already fixed in the latest glslang source code, but updating may be too risky for love 11.x.
2021-12-04 13:11:01 -04:00
Alex Szpakowski b54aaf65ca Fix the default error handler drawing when love.graphics is inactive.
love.graphics.isActive() is false on mobile devices when the app isn't in the foreground. On iOS there can be a few frames between when the app is backgrounded and when the OS pauses it, where it's not valid to call OpenGL functions or present the screen.
2021-12-04 11:58:00 -04:00
Alex Szpakowski b87034404e newVideo: slightly more descriptive error when given an invalid file 2021-11-24 21:15:51 -04:00
Alex Szpakowski ff12dbbd69 Merge pull request #1729 from MikuAuahDark/fix1728
Break OggDemuxer::readPage loop on EOF.
2021-11-24 21:07:04 -04:00
megagrump 136c3cd277 use double precision numbers in love.math.noise 2021-11-22 14:57:05 +01:00
megagrump 85894ad5e4 use dt instead of inv_dt in RevoluteJoint::getMotorTorque 2021-11-21 01:04:48 +01:00
Alex Szpakowski d0e22fb56e Merge pull request #1739 from s-walrus/fix/font-getwrap-final-newline
Fix #1707: Font:getWrap() removing final newline charancter
2021-11-20 16:43:56 -04:00
Alex Szpakowski bd741a8c78 Fix incorrect particle offsets when Quads are used without setOffset.
Fixes #1741.
2021-11-19 21:44:04 -04:00
Miku AuahDark 0f9e598ebb Fixed love.filesystem.getDirectoryItems() in Android with new fusing mehod. 2021-11-13 14:34:54 +08:00
Alex Szpakowski 888051d01e Potential very hacky workaround for arm64 JIT allocation issues.
Try to reserve blocks of executable memory before external library code claims the address space. LuaJIT on arm64 currently has a very limited range of memory it can use for JIT code.
2021-11-12 21:58:49 -04:00
Alex Szpakowski a3ff9999d1 Disallow mat3 formats in shader storage buffers.
GLSL's std430 layout rules make it really unintuitive for users to deal with.
2021-11-06 18:30:08 -03:00
Alex Szpakowski 5c98cbdabd Fix Shader:send with storage buffers when the shader uses more than 1. 2021-11-06 17:03:54 -03:00
Alex Szpakowski fb77e64f61 Allow plain arrays of a base type as shader buffer block declarations. 2021-11-06 16:42:41 -03:00
Alex Szpakowski 68977ec311 Fix alignment of storage buffers with vec3 or mat3 components. 2021-11-06 11:17:23 -03:00
Alex Szpakowski 041aa2fc23 Revert Shader:send to cause a Lua error instead of returning false,
if the given variable doesn't exist or is optimized out in the shader.
2021-11-06 10:43:43 -03:00
Alex Szpakowski b916c0ad92 Fix error message when sending buffers to unused variables 2021-11-06 10:41:30 -03:00
Miku AuahDark 1bb22d2e90 Set game source path when using virtual archive in Android.
This will also prevent double `love.filesystem.setSource()` call
in that case.
2021-11-05 15:22:03 +08:00
Miku AuahDark 3a18a2ab0d Use GameActivity.buildFileLookup via JNI to build file tree.
Turns out AAssetDir_getNextFilename() intentionally excludes directories,
thus the custom archive backend only sees the top-level files.
2021-11-05 13:55:14 +08:00
Miku AuahDark b79b99bbaa Use specialized logic when loading C modules in Android. 2021-11-02 17:54:13 +08:00
Semyon Yentsov a57d207a57 Fix bug #1707 2021-11-01 01:37:18 +03:00
Alex Szpakowski e258601bb5 Fix the save dir not being created if appdata/LOVE/ doesn't exist. 2021-10-21 13:46:42 -03:00
Alex Szpakowski 8a48f1b733 Merge branch 'main' into 12.0-development 2021-10-19 21:50:19 -03:00
Alex Szpakowski e27a71f798 Move boot.lua to src/modules/love/ with raw string literal format.
Split it up into 3 files to keep under VS2013's raw string literal character limit.
Now boot.lua doesn't need a regeneration step when it's modified.
2021-10-19 21:22:26 -03:00
Alex Szpakowski 0f4adbab0d update stb_image from 2.26 to 2.27 2021-10-16 21:28:22 -03:00
Alex Szpakowski 9b8a422d95 update lodepng to latest code 2021-10-16 21:25:05 -03:00
Alex Szpakowski 4574805486 Make rounded rectangles more robust.
- rx and ry parameters are set to 0 if they're negative.
- automatic points calculation doesn't cause an unnecessarily large amount of points when rx or ry are greater than half the rectangle's size.
2021-10-10 22:08:56 -03:00
Alex Szpakowski ad2de2702a Fix a missing #include causing a potential compile error 2021-10-02 15:32:07 -03:00
Alex Szpakowski 4a579bf2a7 Merge pull request #1730 from zombrodo/fix/1721-printf-wrap
Fix #1721: floor result of scaling kerning based on dpi
2021-09-24 23:01:51 -03:00
Miku AuahDark 75a3e5db01 Fix VS2013 compilation of a066e18. 2021-09-25 08:17:41 +08:00
Miku AuahDark de368ade4a Break OggDemuxer::readPage loop on EOF. 2021-09-21 22:52:50 +08:00
Miku AuahDark ae300d9b11 Revert "Enable JIT in Android"
This reverts commit b092347823.
2021-09-16 22:26:54 +08:00
Miku AuahDark a066e18aa6 Register custom Lua PANIC handler that shows message box.
Some users complained that LOVE simply closes when it reaches
certain memory limit. Note that this is not a foolproof solution.
See the comments.

The real fix for this is to switch LuaJIT to GC64 mode on x64.
2021-09-15 23:22:32 +08:00
Alex Szpakowski 7851124260 metal: work on storage buffers 2021-09-05 13:18:10 -03:00