Use Data:getFFIPointer instead of Data:getPointer for internal ImageData and SoundData FFI code.

This commit is contained in:
Alex Szpakowski
2019-10-27 19:07:58 -03:00
parent 98b55238b4
commit fe2c204a2c
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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,