From 628a35692a165cdd6e26fac1beb274f2c7055483 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 21 May 2018 17:37:08 +0800 Subject: bug --- src/lua/graphics/luaopen_graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lua/graphics/luaopen_graphics.cpp') diff --git a/src/lua/graphics/luaopen_graphics.cpp b/src/lua/graphics/luaopen_graphics.cpp index 6fa5a4d..2b6031b 100644 --- a/src/lua/graphics/luaopen_graphics.cpp +++ b/src/lua/graphics/luaopen_graphics.cpp @@ -82,7 +82,7 @@ namespace lua */ static int l_newShader(lua_State* L) { - Proxy* proxy = (Proxy*)luax_newinstance(L, TYPE_JSL, sizeof(JSLProgram)); + Proxy* proxy = (Proxy*)luax_newinstance(L, TYPE_JSL, sizeof(Proxy)); const char* program = luax_checkstring(L, 1); JSLProgram* jsl = new JSLProgram(program); proxy->bind(jsl); -- cgit v1.1-26-g67d0