Commit Graph

3039 Commits

Author SHA1 Message Date
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
Miku AuahDark 5d63211b93 Fix t.audio.mixwithsystem defaults to false when absent from conf.lua
--HG--
branch : androidmic
2019-09-29 16:21:17 +08:00
Miku AuahDark c8a2978697 Make sure to empty the capture and return that instead.
--HG--
branch : androidmic
2019-09-29 15:54:45 +08:00
Miku AuahDark dda24bb98a Fix typo
--HG--
branch : androidmic
2019-09-29 15:54:27 +08:00
Miku AuahDark 051f1e9830 Add t.audio.mic (boolean) setting to conf.lua
--HG--
branch : androidmic
2019-09-29 12:18:47 +08:00
Miku AuahDark 0d9081ff22 Export love._requestRecordingPermission
--HG--
branch : androidmic
2019-09-29 12:09:39 +08:00
Miku AuahDark 0f23b0e4a0 Initial working on mic recording support for Android.
--HG--
branch : androidmic
2019-09-29 11:47:13 +08:00
Alex Szpakowski 594b45cfb5 Clean up internal vector code. Add an (internal) vector4 struct. 2019-09-28 19:31:02 -03:00
Alex Szpakowski ed537c4f6a lines can render more than 65k vertices (resolves issue #1356). 2019-09-28 18:34:56 -03:00
Alex Szpakowski 157282ec7e Fix a typo causing mesh attribute instancing to behave weirdly. 2019-09-28 00:31:44 -03:00
Alex Szpakowski da046b39f0 possibly fix a Windows compile error 2019-09-26 20:38:02 -03:00
Alex Szpakowski 271f0af7b7 Avoid lua_pushlightuserdata in enet's wrapper code (issue #1515). 2019-09-26 20:11:25 -03:00
Alex Szpakowski 83e74e5e6c Fix setRandomSeed and setRandomState not fully invalidating the state used by randomNormal (resolves issue #1516). 2019-09-26 19:38:36 -03:00
Alex Szpakowski 2eefa859e3 Attempt to fix VS2013 compatibility. 2019-09-25 15:52:12 -03:00
Alex Szpakowski 93802a3247 Use doubles instead of lightuserdata for keys into love's internal object registry (issue #1515). 2019-09-25 15:30:22 -03:00
Alex Szpakowski 4f093a0b6b Support loading BGRA8 dds files into RGBA8 images. 2019-09-22 12:47:49 -03:00
Alex Szpakowski a5ccfe4394 More clamping and rounding instead of truncating in ImageData:paste format conversion code, to match the behaviour of other color conversion code. 2019-09-21 22:20:16 -03:00
Alex Szpakowski 42a8107b07 Fix a compile error 2019-09-21 22:13:36 -03:00
Alex Szpakowski 2bf5a04937 Use a generic slow path for ImageData:paste between formats when we don't already have a faster path for it, instead of erroring. 2019-09-21 22:13:10 -03:00
Alex Szpakowski e11d43507e Reorganize ImageData:set/mapPixel code so less of it is in the Lua wrapper and more of it is in the ImageData class itself. 2019-09-21 21:48:03 -03:00
Alex Szpakowski c4fac73dc4 ImageData and Images now support the rg11b10f format. 2019-09-21 14:46:45 -03:00
Alex Szpakowski b5da34ffb1 very minor code style change for consistency 2019-09-21 11:08:55 -03:00
Alex Szpakowski 94c66918a8 Add support for rgba4, rgb5a1, rgb565, and rgb10a2 ImageData formats. Also fix normalized 8 and 16 bit per component ImageData to round instead of floor (post-converted fixed point) fractional values in setPixel and mapPixel. 2019-09-21 11:02:40 -03:00
Alex Szpakowski f03b391245 Canvas:newImageData creates an ImageData with a pixel format that matches the canvas'. 2019-09-20 19:25:15 -03:00
Alex Szpakowski cd6471304d add comments to packed pixel format enums to clarify bit order 2019-09-19 20:48:17 -03:00
Alex Szpakowski 0d2de019c3 Fix ImageData:getPixel and ImageData:mapPixel when 1- and 2-component formats are used and the JIT compiler isn't available. 2019-09-18 20:23:32 -03:00
Alex Szpakowski 58e26280c2 Fix detection for support of r16 and rg16 image formats on desktops. 2019-09-18 19:36:08 -03:00
Alex Szpakowski d6e37ec4aa Add support for loading DDS files that contain raw/uncompressed pixel data. Resolves issue #1097. 2019-09-17 22:40:11 -03:00
Alex Szpakowski a6f8e7dac6 Improve detection of sRGB texture formats in dds files (doesn't currently affect any exposed API). 2019-09-15 19:08:25 -03:00
Alex Szpakowski 33bc8aabfc Add Joystick:getGamepadMappingString and love.joystick.getGamepadMappingString(guid). Resolves issue #1371. 2019-09-15 14:02:19 -03:00
Alex Szpakowski 9ab2a94037 Rename internal C++ Color struct to Color32 to help differentiate it from Colorf. 2019-09-14 23:13:40 -03:00
Alex Szpakowski 89eb3c6236 Remove a static_assert that fails in some compilers 2019-08-25 17:16:58 -03:00
Alex Szpakowski 55d4dc0f9e Restructure some internal vertex buffer binding code to be closer to how graphics APIs actually behave. 2019-08-25 16:50:15 -03:00
Bart van Strien 932068e777 Stop the attached Source when a Video gets destroyed
Before it would end up paused, but this means the audio playback thread will
still keep it alive. Since there are no other references, there is no way to
then free that Source anymore.
2019-08-11 15:34:00 +02:00
Bart van Strien cb625d890a Make sure luax_getfile always returns a retained value
Before it would return a retained value if it returned a freshly constructed file, and an unretained value otherwise.
Also update all (3) call sites, to correctly retain or release as needed.
2019-08-11 11:13:22 +02:00