From 8b9b325b092b7157996cfbcdd7ce38f9e876fff8 Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 20 Aug 2022 15:37:04 -0500 Subject: fix bug in gl.bufferData and add error checking --- src/gl/gl.test.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/gl/gl.test.c') diff --git a/src/gl/gl.test.c b/src/gl/gl.test.c index aa24fd2..9782caf 100644 --- a/src/gl/gl.test.c +++ b/src/gl/gl.test.c @@ -67,10 +67,10 @@ void mock_glBufferData_(int target, size_t size, const void *data, int usage) }; lily_mock_store_call(mock_glBufferData, args); - size_t count = size/sizeof(lua_Number); - lua_Number *numbers = data; + size_t count = size/sizeof(float); + float *numbers = data; for (int i=0; i