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
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
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
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
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
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
44033cd143
Fix a compile error on macOS/iOS
2020-05-21 20:08:43 -03:00
Joel Schumacher
1c5b8431ca
Remove usage of invalid timespec
...
Also add a comment to clarify why the subtraction of timespec values
should work.
2020-05-22 00:33:47 +02:00
Joel Schumacher
ba37b262c0
Fix getTime for Windows
2020-05-21 16:02:12 +02:00
Joel Schumacher
0a5db1ba6d
Subtract start time before double conversion
...
To preserve precision the subtraction of the start time happens with
integer values now and the platform specific implementations have been
split completely.
2020-05-21 15:56:57 +02:00
Joel Schumacher
8d627c88ae
Fix comment regarding first invocation of getTime
2020-05-21 15:56:43 +02:00
Joel Schumacher
b9dd24d3ce
Make getTime() relative to first invocation
2020-05-20 23:49:45 +02:00
Alex Szpakowski
8fac08809a
Eliminate redundant glActiveTexture calls when shaders are used.
...
The redundant calls were introduced with the previous commit.
2020-03-15 19:24:49 -03:00
Alex Szpakowski
9c2454816f
Fix the active GL texture unit not always being set properly.
...
Fixes issues where texture methods wouldn't have any effect, depending on the current internal opengl state.
2020-03-15 01:29:33 -03:00
Andrew West
0efb49dc5f
Changed to set the window title before creation rather than after
2020-03-02 20:51:46 +00:00
Alex Szpakowski
15f0e4109b
Fix a typo in a comment
2020-02-15 13:50:47 -04:00
Alex Szpakowski
813b1e0e69
Remove debug print
2020-02-05 18:03:34 -04:00
Alex Szpakowski
ca84b6db48
More robust error handling for AMD Pinned Memory buffers (issue #1540 )
...
Also print out any errors that are produced from that (for now).
2020-02-05 07:49:38 -04:00
Miku AuahDark
5a27742c34
FLAC: Update dr_flac to 0.12.3
...
Improved seeking for FLAC audio files.
2020-01-29 13:22:13 +08:00
Miku AuahDark
67ee1e4d76
Windows: Actually query page size.
2020-01-28 22:05:05 +08:00
Reiner Herrmann
27942191c5
Fix typos
2020-01-24 18:56:16 +01:00
Antonin Décimo
66e3f29a68
Change file permissions from 755 to 644
2020-01-15 14:59:00 +01:00
Alex Szpakowski
eab3b83a2e
Fix a hard freeze on AMD+Windows systems when the internal buffers used for automatic batching are resized.
2020-01-06 19:58:22 -04:00
Alex Szpakowski
fc4847c69d
Update copyright for the new year
2020-01-03 22:40:36 -04:00
Paul Cercueil
0bac89e00f
Fix build on MIPS
...
On MIPS toolchains, the 'mips' keyword is a macro defined to 1.
Signed-off-by: Paul Cercueil <paul@crapouillou.net >
2019-12-19 11:36:33 +01:00
Alex Szpakowski
6a552d5a6f
Allow Canvases to use the r16, rg16, and rgba16 pixel formats.
2019-11-18 22:45:54 -04:00
Alex Szpakowski
c3be5c4682
Fix a crash when Canvas:newImageData is called and the width multiplied by the canvas format's pixel byte size is not a multiple of 4, for example a 3x3 r16f canvas (thanks Max!)
2019-11-12 21:27:46 -04:00
Alex Szpakowski
fe2c204a2c
Use Data:getFFIPointer instead of Data:getPointer for internal ImageData and SoundData FFI code.
2019-10-27 19:07:58 -03:00
Alex Szpakowski
1e0a7cad67
Fix instanced vertex attributes.
2019-10-04 19:28:55 -03:00
Alex Szpakowski
5dfcf90e66
Fix Text:set(" ") not properly clearing the internal buffer (resolves issue #1518 ).
2019-10-01 19:02:16 -03:00
Alex Szpakowski
cc5afbacdd
Possibly fix a compile error on some Linux systems.
2019-10-01 18:54:16 -03:00
Alex Szpakowski
5789a0b1b1
Merged in AuahDark/love/androidmic (pull request #126 )
...
Recording support for Android (C++ side)
2019-09-29 12:30:13 +00:00
Alex Szpakowski
16dd33b1ff
Fix a typo in the love.window.getNativeDPIScale function name.
2019-09-29 09:29:34 -03:00