bjorn 1 year ago
parent
commit
8ed83145d8
2 changed files with 2 additions and 2 deletions
  1. 1 1
      api/init.lua
  2. 1 1
      api/lovr/graphics/Buffer/getPointer.lua

+ 1 - 1
api/init.lua

@@ -12941,7 +12941,7 @@ return {
               description = "Returns a raw pointer to the Buffer's memory as a lightuserdata, intended for use with the LuaJIT FFI or for passing to C libraries.",
               description = "Returns a raw pointer to the Buffer's memory as a lightuserdata, intended for use with the LuaJIT FFI or for passing to C libraries.",
               key = "Buffer:getPointer",
               key = "Buffer:getPointer",
               module = "lovr.graphics",
               module = "lovr.graphics",
-              notes = "The pointer remains valid until the next call to `lovr.graphics.submit`, during which the data in the pointer will be uploaded to the buffer.\n\nThe initial contents of the pointer are undefined.\n\nCurrently the pointer addresses a range equal to the size of the Buffer, and so this overwrites the entire contents of the Buffer.\n\nSpecial care should be taken when writing data:\n\n- Reading data from the pointer will be very very slow on some systems, and should be avoided.\n- It is better to write data to the pointer sequentially.  Random access may be slower.",
+              notes = "The pointer remains valid until the next call to `lovr.graphics.submit`, during which the data in the pointer will be uploaded to the buffer.\n\nThe initial contents of the pointer are undefined.\n\nCurrently the pointer addresses a range equal to the size of the Buffer, and so this overwrites the entire contents of the Buffer.\n\nSpecial care should be taken when writing data:\n\n- Reading data from the pointer will be very slow on some systems, and should be avoided.\n- It is better to write data to the pointer sequentially.  Random access may be slower.",
               related = {
               related = {
                 "Blob:getPointer"
                 "Blob:getPointer"
               },
               },

+ 1 - 1
api/lovr/graphics/Buffer/getPointer.lua

@@ -29,7 +29,7 @@ return {
 
 
     Special care should be taken when writing data:
     Special care should be taken when writing data:
 
 
-    - Reading data from the pointer will be very very slow on some systems, and should be avoided.
+    - Reading data from the pointer will be very slow on some systems, and should be avoided.
     - It is better to write data to the pointer sequentially.  Random access may be slower.
     - It is better to write data to the pointer sequentially.  Random access may be slower.
   ]],
   ]],
   related = {
   related = {