Sasha Szpakowski
1080507c7d
Improve variable name readability in line rendering code.
2023-04-13 22:12:05 -03:00
slime
c245397178
Remove NaN-check C assert calls in line drawing code.
...
Users can pass NaN point values into line drawing code. love shouldn't abort the entire program if that happens.
2023-04-13 22:11:46 -03:00
Klonan
7e0f8ca791
FIx polyline adding NaN normals, which breaks the line rendering
2023-04-13 22:11:35 -03:00
Sasha Szpakowski
592c306276
Fix images with mipmaps when ANGLE is used with an AMD gpu.
2023-01-14 22:35:00 -04:00
Sasha Szpakowski
22b6388a96
Merge pull request #1888 from steveRoll-git/main
...
Allow Canvas:renderTo to accept varargs
2023-01-01 10:59:42 -04:00
Sasha Szpakowski
0b75f6cfa5
Missed some files...
2022-12-31 22:36:48 -04:00
Sasha Szpakowski
c823dbca96
Update copyright year for 2023
2022-12-31 22:25:49 -04:00
Ron Tseytlin
c5d72846c4
Allow Canvas:renderTo to accept varargs
...
The varargs will be forwarded to the function.
2022-12-31 02:32:54 +02:00
slime
8495cefd3b
opengl: fix creating compressed array textures with > 1 layer.
...
Fixes #1817 .
2022-08-09 20:37:48 -03:00
slime
870021b8bd
Potentially fix a crash when calling Text:add("").
...
#1824
2022-07-24 16:23:56 -03:00
Alex Szpakowski
65667c0f18
Fix sRGB texture internal formats in OpenGL ES 3.
2022-01-16 10:30:56 -04:00
Alex Szpakowski
8e7fd10b6f
Update copyright year for 2022
2021-12-31 18:33:40 -04:00
Alex Szpakowski
cf0a45f601
Fix non-stream buffers uploading redundant data when a sub-range is modified.
...
https://love2d.org/forums/viewtopic.php?f=4&t=92458
2021-12-28 15:10:09 -04:00
Miku AuahDark
fb815edc28
Change luaL_loadbuffer chunkname with prefixes.
2021-12-12 09:23:00 +08: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
Semyon Yentsov
a57d207a57
Fix bug #1707
2021-11-01 01:37:18 +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
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
Alex Szpakowski
16ebaea390
Fix DXT1 textures which use 1 bit alpha-cutout.
...
Note that premultiplied alpha blending must be used with DXT1 alpha cutout textures if linear filtering is used, otherwise transparent black pixels will be blended with opaque non-black pixels resulting in dark fringes.
2021-09-05 12:55:32 -03:00
Jack Robinson
bfca659e37
Fix #1721 : floor result of scaling kerning based on dpi
2021-08-31 21:22:06 +12:00
Alex Szpakowski
aa8ed7c8c5
Revert change that added codepoint variant of Font:getWidth.
...
It could break code that relied on Lua's implicit conversion from numbers to strings.
2021-05-30 15:46:21 -03:00
Alex Szpakowski
e9c58c8192
Work around certain buggy Vivante GPU drivers on Android
...
love2d/love-android#204
2021-04-17 15:09:21 -03:00
Alex Szpakowski
7b6978f052
Add Font:getKerning.
...
Also add a variant of Font:getWidth which accepts a codepoint number.
Fixes #1403
2021-04-05 11:22:54 -03:00
Alex Szpakowski
c59c85e04c
Fix Text:getWidth when the Text only contains spaces
...
Fixes #1555
2021-04-05 10:32:01 -03:00
Alex Szpakowski
f89aabb0bb
Update copyright year for 2021
2021-04-04 16:14:45 -03:00
Alex Szpakowski
1e3e4faba7
Fix the wrong type of deletion used in some internal Mesh data
2021-04-04 16:02:59 -03:00
Alex Szpakowski
c991f999eb
Account for different DPI scales in font fallbacks.
...
Fixes #1675
2021-04-04 16:01:22 -03: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
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
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
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
Alex Szpakowski
e32935e0f6
Backport Canvas memory stats fix from 12.0.
...
Fixes #1642
2020-11-11 15:11:00 -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
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
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
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