mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
Use Data:getFFIPointer instead of Data:getPointer for internal ImageData and SoundData FFI code.
This commit is contained in:
@@ -55,7 +55,7 @@ local objectcache = setmetatable({}, {
|
||||
__mode = "k",
|
||||
__index = function(self, sounddata)
|
||||
local bytedepth = _getBitDepth(sounddata) / 8
|
||||
local pointer = ffi.cast(datatypes[bytedepth], sounddata:getPointer())
|
||||
local pointer = ffi.cast(datatypes[bytedepth], sounddata:getFFIPointer())
|
||||
|
||||
local p = {
|
||||
bytedepth = bytedepth,
|
||||
|
||||
Reference in New Issue
Block a user