diff options
author | chai <chaifix@163.com> | 2018-05-21 17:37:08 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-05-21 17:37:08 +0800 |
commit | 628a35692a165cdd6e26fac1beb274f2c7055483 (patch) | |
tree | df3ef395b37852622c06d967963d44221cb1b319 /src/lua/graphics/luaopen_graphics.cpp | |
parent | 91b298d9c9053a658b9f6d368638087730326544 (diff) |
bug
Diffstat (limited to 'src/lua/graphics/luaopen_graphics.cpp')
-rw-r--r-- | src/lua/graphics/luaopen_graphics.cpp | 2 |
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); |