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
@@ -368,7 +368,7 @@ local objectcache = setmetatable({}, {
width = width,
height = height,
format = format,
pointer = ffi.cast(conv.pointer, imagedata:getPointer()),
pointer = ffi.cast(conv.pointer, imagedata:getFFIPointer()),
tolua = conv.tolua,
fromlua = conv.fromlua,
}