aboutsummaryrefslogtreecommitdiff
path: root/src/lua/modules/graphics/je_lua_shader.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-11-15 19:29:27 +0800
committerchai <chaifix@163.com>2018-11-15 19:29:27 +0800
commit7e51ff3bfae0becc260452a427a1fc1232a4b348 (patch)
treee2c4cddcd5ed719a611be4c92edf1991a63203c5 /src/lua/modules/graphics/je_lua_shader.cpp
parenta6f2d5fff89b7322009c46a9272668ca4c32ce64 (diff)
*修改代码结构
Diffstat (limited to 'src/lua/modules/graphics/je_lua_shader.cpp')
-rw-r--r--src/lua/modules/graphics/je_lua_shader.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lua/modules/graphics/je_lua_shader.cpp b/src/lua/modules/graphics/je_lua_shader.cpp
index 61c8eef..1612a69 100644
--- a/src/lua/modules/graphics/je_lua_shader.cpp
+++ b/src/lua/modules/graphics/je_lua_shader.cpp
@@ -117,7 +117,7 @@ namespace JinEngine
return 0;
}
- LUA_EXPORT int luaopen_JSL(lua_State* L)
+ LUA_EXPORT void luaopen_Shader(lua_State* L)
{
luaL_Reg f[] = {
{ "__gc", l_gc },
@@ -131,7 +131,6 @@ namespace JinEngine
{ 0, 0 }
};
luax_newtype(L, Jin_Lua_Shader, f);
- return 0;
}
} // namespace Lua