From f84ee69cdf694a1f64f2536efed4b7d0dd75553a Mon Sep 17 00:00:00 2001 From: sanine Date: Mon, 22 Aug 2022 09:12:09 -0500 Subject: make hello triangle work --- demo/honey.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demo') diff --git a/demo/honey.lua b/demo/honey.lua index 489f022..15acbf2 100644 --- a/demo/honey.lua +++ b/demo/honey.lua @@ -75,7 +75,7 @@ gl.bindVertexArray(vertexArray) gl.bindBuffer(gl.bufferTarget.arrayBuffer, vertexBuffer) local err = gl.getError() if err ~= gl.errorType.noError then error(gl.errorName(err)) end -gl.bufferData(gl.bufferTarget.arrayBuffer, vertices, gl.bufferUsage.staticDraw) +gl.bufferData(gl.bufferTarget.arrayBuffer, gl.dataType.float, vertices, gl.bufferUsage.staticDraw) if gl.getError() ~= gl.errorType.noError then error(gl.getError()) end gl.vertexAttribPointer(0, 3, false, 3, 0) -- cgit v1.2.1