summaryrefslogtreecommitdiff
path: root/demo/honey.lua
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-08-22 09:12:09 -0500
committersanine <sanine.not@pm.me>2022-08-22 09:12:09 -0500
commitf84ee69cdf694a1f64f2536efed4b7d0dd75553a (patch)
tree3269fa48abaab2e298dd1b83469524ae08ffda95 /demo/honey.lua
parent33f3eb1c5a489a1b0c7d508e6a42f0dbb20e3a1b (diff)
make hello triangle work
Diffstat (limited to 'demo/honey.lua')
-rw-r--r--demo/honey.lua2
1 files changed, 1 insertions, 1 deletions
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)