summaryrefslogtreecommitdiff
path: root/demo/ScreenQuad.lua
diff options
context:
space:
mode:
Diffstat (limited to 'demo/ScreenQuad.lua')
-rw-r--r--demo/ScreenQuad.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/demo/ScreenQuad.lua b/demo/ScreenQuad.lua
index 4cc247f..73cce46 100644
--- a/demo/ScreenQuad.lua
+++ b/demo/ScreenQuad.lua
@@ -35,8 +35,8 @@ ScreenQuad.shader = honey.shader(vertexShader, fragmentShader)
ScreenQuad.tex = honey.texture.new()
ScreenQuad.depth = honey.texture.new()
-honey.texture.create(ScreenQuad.tex, 'rgb', 640, 480);
-honey.texture.create(ScreenQuad.depth, 'depth', 640, 480);
+ScreenQuad.tex:create('rgb', 640, 480)
+ScreenQuad.depth:create('depth', 640, 480)
--honey.texture.load(ScreenQuad.texture, 'checkerboard.png', false)
ScreenQuad.fb = honey.texture.new_framebuffer(ScreenQuad.tex, ScreenQuad.depth, 640, 480)