summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/compressed_resource_file/main.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/compressed_resource_file/main.lua b/examples/compressed_resource_file/main.lua
index ae37f3f..f22e03a 100644
--- a/examples/compressed_resource_file/main.lua
+++ b/examples/compressed_resource_file/main.lua
@@ -27,10 +27,12 @@ local function writeDataFile( path )
local totalLength = 4 + RL.GetBufferLength( imgData.data ) / 4
local buffer = RL.LoadBufferFormatted( totalLength, RL.BUFFER_UNSIGNED_INT, 0 )
- RL.SetBufferData( buffer, 0, imgData.size.x )
- RL.SetBufferData( buffer, 1, imgData.size.y )
- RL.SetBufferData( buffer, 2, imgData.mipmaps )
- RL.SetBufferData( buffer, 3, imgData.format )
+ RL.SetBufferData( buffer, 0, {
+ imgData.size.x,
+ imgData.size.y,
+ imgData.mipmaps,
+ imgData.format,
+ } )
RL.CopyBufferData( buffer, imgData.data, 4, 0, RL.GetBufferLength( imgData.data ) )
if compress then