Commit Graph

3698 Commits

Author SHA1 Message Date
Miku AuahDark 7524677d4c Don't use feof to check for end-of-file in DroppedFile.
Fixes #1551

Apparently `feof` is only set when `fread(..., size, count, ...) < size * count` happends,
however we actually have code that automatically adjust amount of bytes to read
(and at "eof" it really happends to be 0) so fread is never able to set the EOF flag.
2020-12-31 10:32:05 +08:00
Alex Szpakowski c04b8d19a0 Merge pull request #1657 from qaisjp/feature/get-world-points
Fix #1614: add Body:getLocalPoints
2020-12-30 14:17:06 -04:00
Qais Patankar 562cc6b1cb Fix #1614: add Body:getLocalPoints 2020-12-30 04:27:48 +00:00
Alex Szpakowski 95ab4054ff Fix a freeze on Intel drivers when using mipmapped Canvases
Fixes #1585

Also disallow generateMipmaps on depth/stencil canvases because it's not really supported.
2020-12-26 16:37:37 -04:00
Alex Szpakowski 4f730e930b Potential workaround for driver bug related to canvas mipmaps 2020-12-25 16:13:29 -04:00
Miku AuahDark 9c4db00e94 Android: Fix changing orientation with t.window.fullscreen = true
Fixes love2d/love-android#196
2020-12-25 21:45:32 +08:00
Alex Szpakowski fe23c16198 Disable gamma correction on Windows + Intel HD 2/3000 / Intel HD Graphics
It's completely broken there. Closes #1592
2020-12-24 20:31:33 -04:00
Alex Szpakowski 90bd8f1811 Update version 2020-12-24 12:45:08 -04:00
Alex Szpakowski 9e460ba53e Fix explicit window position not being restored in some cases when exiting fullscreen
Fixes #1426
2020-12-24 12:29:00 -04:00
Miku AuahDark 57a2a88a09 Android: Rename "openURL" Java method to "openURLFromLOVE"
SDL 2.0.14 adds openURL method which conflicts with LOVE one.
2020-12-24 22:15:15 +08:00
Alex Szpakowski 48a13d443b Fix validating glsl1 shaders using array textures on GLES3 2020-12-23 20:42:12 -04:00
Alex Szpakowski d357ceb191 Merge pull request #1648 from xordspar0/tegra-3-bug
Work around Ouya driver bug related to texture array support
2020-12-23 20:13:41 -04:00
Alex Szpakowski ae4fe5bff9 Update Xcode project files 2020-12-23 13:00:24 -04:00
Alex Szpakowski f3afdee70a Keep math.mod and string.gfind when LuaJIT 2.1 is used
Code written assuming LuaJIT 2.0 is being used might rely on them, even though they're deprecated (and removed in LuaJIT 2.1).
2020-12-23 12:58:26 -04:00
Alex Szpakowski bfaae71f2a macOS: only build for x64, for now
We don't support arm64 yet
2020-12-22 22:54:43 -04:00
Alex Szpakowski 140c1f38c0 Minor code style tweaks 2020-12-22 19:34:23 -04:00
Alex Szpakowski 73c79d1b73 Merge pull request #1646 from cigumo/ios-audio-interruption-handling
adds iOS audio interruption handling and recovery
2020-12-18 22:53:02 -04:00
Miku AuahDark 81272ba5b5 Only use pinned memory on AMD GPUs.
As per in Discord, for some reason Intel driver in Linux(?) expose
pinned memory extension and causes driver crash in one test case.
2020-12-15 10:25:38 +08:00
Jordan Christiansen 0fd53e2e3d Disable GL_EXT_texture_array on OpenGL ES 2.0
The Nvidia Tegra 3 driver for Android (used by Ouya) erroneously claims
to support the desktop-oriented GL_EXT_texture_array extension. On
desktop GPUs using (non ES) OpenGL, the glTexImage3D and similar
functions are always present, and the GL_EXT_texture_array extension
simply adds support for texture arrays to those functions. On OpenGL ES
2.0, those functions do not exist, and GL_OES_texture_3D is required to
define them.

Calling glTexImage3D on the Tegra 3 causes a segfault. This change works
around the issue by manually setting GLAD_EXT_texture_array to 0 on
OpenGL ES 2.0 systems, which causes LÖVE to avoid codepaths that assume
that the 3D texture functions are available. It doesn't make sense for
any OpenGL ES 2.0 GPU to claim support for GL_EXT_texture_array.

Fixes #1647
2020-12-09 19:54:36 -06:00
cigumo 74edaf8fba adds iOS audio interruption handling and recovery 2020-12-08 23:13:52 -03:00
Alex Szpakowski 0b06d0d1f9 macOS: turn code signing off completely on x64
Previously it was using ad-hoc ('sign to run locally') signing, which breaks on macOS 10.14 and older when a .love is put in the Resources subfolder. Ad-hoc is necessary on Apple Silicon but not x64, if real code signing isn't used.
2020-11-13 17:57:30 -04:00
Alex Szpakowski 1bcae1abe9 Update changelog 2020-11-11 16:07:35 -04:00
Alex Szpakowski e32935e0f6 Backport Canvas memory stats fix from 12.0.
Fixes #1642
2020-11-11 15:11:00 -04:00
Alex Szpakowski f519d2e2df macOS: fix issues with drag-and-drop to open a love game
- Fix love.event.quit("restart") running the no-game screen instead of the current game.
- Fix fused apps opening other games when drag-and-drop is used.
2020-10-26 20:37:41 -03:00
Alex Szpakowski 2b88ca1da4 Merge pull request #1637 from glebm/pspawn
System.cpp: Do not require posix_spawn on "Linux"
2020-10-13 08:47:29 -03:00
Gleb Mazovetskiy 0ad34a3c71 System.cpp: Do not require posix_spawn on "Linux"
Many libc implementations do not implement posix_spawn.
Allow love2d to build without it.
2020-10-13 08:39:54 +01:00
Alex Szpakowski fec09d75c8 Merge pull request #1636 from glebm/glad
glad.hpp: Fix include inside a namespace
2020-10-11 23:57:28 -03:00
Gleb Mazovetskiy 186fa4e0ad glad.hpp: Fix include inside a namespace
These includes should not be inside a namespace.
2020-10-11 10:27:32 +01:00
Miku AuahDark d2c42bd746 Merge pull request #1634 from 0x7D2B/patch-1
Fix AUR link (love-hg to love-git)
2020-10-06 18:43:27 +08:00
0x7D2B c2c59f37a5 Fix AUR link (love-hg to love-git) 2020-10-06 07:45:45 +00:00
Alex Szpakowski 8c86515d04 Revert "Windows: reduce stuttering in windowed mode via DwmFlush"
This reverts commit 5dd4a463be.
2020-10-01 22:09:47 -03:00
Alex Szpakowski 5dd4a463be Windows: reduce stuttering in windowed mode via DwmFlush
Resolves issue #1628
2020-09-29 20:22:41 -03:00
Alex Szpakowski 6be79bdd89 Fix build errors when Xcode 12 is used. 2020-09-21 22:14:41 -03:00
Alex Szpakowski 9f62bafea2 Merge pull request #1607 from Cartread/patch-1
Update boot.lua
2020-08-16 11:34:19 -03:00
Cartread da644085e4 Update boot.lua.h 2020-08-15 22:57:30 -04:00
Alex Szpakowski b86151081d Merge pull request #1609 from nikeinikei/master
make love lua 5.4 conform
2020-08-14 21:21:39 -03:00
niki c3e6659fcb remove pushliteral version in luaopen_luautf8 2020-08-15 01:28:49 +02:00
niki 99e1c0034d make love lua 5.4 conform 2020-08-14 19:27:42 +02:00
Cartread e1d491b7c5 Update boot.lua
Removing the alpha variable allows anyone who overwrote the setColor function to see errorhandler's print.
e.g. I'm overwriting the setColor function to accommodate 0-255 values and the error message is being printed with 1/255 alpha (invisible).
Removing the 1 will print the message in black.

P.S. I'm currently overwriting errorhandler for this, but I assume others are also overwriting setColor and see no error messages.
2020-08-13 00:26:17 -04:00
Alex Szpakowski 5f4d2f3323 Fix love.graphics.newVolumeImage when explicit mipmaps are given
Fixes issue #1602
2020-08-09 12:12:28 -03:00
Alex Szpakowski dde3db3006 Apply Image:replacePixels/missing text workaround to more ATI drivers
issue #1563
2020-07-12 18:25:55 -03:00
Alex Szpakowski d60d8867f4 Possible workaround for an Intel driver bug with readable depth buffers
https://github.com/love2d/love/issues/1592
2020-07-11 17:21:26 -03:00
Alex Szpakowski 50eeed7bb1 Fix Shader:send's Data variant when a matrix layout arg is used.
Also add a second more consistent Data+matrix layout variant of Shader:send which matches the argument order of the table+matrix layout variant - Shader:send(name, matrixlayout, data, ...).
2020-07-10 22:52:23 -03:00
Alex Szpakowski 96b8d29a5c Clean up code for computing smooth line vertex colors. 2020-06-28 21:58:13 -03:00
Miku AuahDark cd6bbc1299 Merge branch 'master' of https://github.com/love2d/love 2020-06-15 13:44:28 +08:00
Miku AuahDark 74ceb08dce Add LodePNG and stb_image to license 2020-06-15 13:43:36 +08:00
Miku AuahDark 4191351f55 Update stb_image to 2.25 2020-06-15 13:23:53 +08:00
Miku AuahDark 5602d29812 Update lodepng to 20200306 2020-06-15 13:18:36 +08:00
Alex Szpakowski c1d5937d0e Merge pull request #1584 from qaisjp/fix/github-typo
Fix "github" typo in readme
2020-06-08 23:16:26 -03:00
Qais Patankar ee43401c81 Fix "github" typo in readme 2020-06-08 11:38:45 +01:00