summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/compressed_resource_file/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/compressed_resource_file/main.lua b/examples/compressed_resource_file/main.lua
index 0f9f904..ae37f3f 100644
--- a/examples/compressed_resource_file/main.lua
+++ b/examples/compressed_resource_file/main.lua
@@ -61,7 +61,7 @@ local function loadDataFile( path )
imgData.data = RL.LoadBufferFormatted( imageDataSize, RL.BUFFER_UNSIGNED_CHAR, 0 )
- RL.CopyBufferData( imgData.data, buffer, 0, 4, imageDataSize / 4 )
+ RL.CopyBufferData( imgData.data, buffer, 0, 4, imageDataSize )
local image = RL.LoadImageFromData(
imgData.data,