aboutsummaryrefslogtreecommitdiff
path: root/src/lua/graphics/luaopen_graphics.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-05-21 17:37:08 +0800
committerchai <chaifix@163.com>2018-05-21 17:37:08 +0800
commit628a35692a165cdd6e26fac1beb274f2c7055483 (patch)
treedf3ef395b37852622c06d967963d44221cb1b319 /src/lua/graphics/luaopen_graphics.cpp
parent91b298d9c9053a658b9f6d368638087730326544 (diff)
bug
Diffstat (limited to 'src/lua/graphics/luaopen_graphics.cpp')
-rw-r--r--src/lua/graphics/luaopen_graphics.cpp2
1 files changed, 1 insertions, 1 deletions
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);