Browse Source

Update FFI buffer test;

bjorn 1 year ago
parent
commit
1ddefa07da
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/buffers.lua

+ 1 - 1
tests/buffers.lua

@@ -193,7 +193,7 @@ function lovr.load()
   if ok and ffi then
   if ok and ffi then
     buffer = lovr.graphics.newBuffer('float')
     buffer = lovr.graphics.newBuffer('float')
     ffi.cast('float*', buffer:mapData())[0] = 7
     ffi.cast('float*', buffer:mapData())[0] = 7
-    assert(buffer:getData()[1] == 7)
+    assert(buffer:getData() == 7)
   end
   end
 
 
   -- Push constants
   -- Push constants