From c5fc66ee58f2c60f2d226868bb1cf5b91badaf53 Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 1 Oct 2022 20:59:36 -0500 Subject: add ode --- demo/honey.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'demo') diff --git a/demo/honey.lua b/demo/honey.lua index d543488..4b1526f 100644 --- a/demo/honey.lua +++ b/demo/honey.lua @@ -200,9 +200,8 @@ image.context_move_to(cr, 100, 100) image.context_show_text(cr, "hello, world!") local data = image.surface_get_data(surface) gl.BindTexture(gl.TEXTURE_2D, texture) -gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_SWIZZLE_R, gl.GREEN) -gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_SWIZZLE_G, gl.BLUE) -gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_SWIZZLE_B, gl.ALPHA) +gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_SWIZZLE_R, gl.BLUE) +gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_SWIZZLE_B, gl.RED) --gl.TexParameteri(gl.TEXTURE_2D, gl.TEXTURE_SWIZZLE_A, gl.RED) gl.TexImage2D( gl.TEXTURE_2D, 0, -- cgit v1.2.1