diff options
author | chai <chaifix@163.com> | 2018-08-24 20:47:59 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-08-24 20:47:59 +0800 |
commit | b52aa211c801a0cc15ed09553e3ff1835662b60b (patch) | |
tree | 58eddcc673a88f2d1912267bf6d26cd3565b32f7 /src/lua/modules/graphics/jsl.cpp | |
parent | 106dfe48c40fdb24b7f5e8a84c992d15363a38d9 (diff) |
*update
Diffstat (limited to 'src/lua/modules/graphics/jsl.cpp')
-rw-r--r-- | src/lua/modules/graphics/jsl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lua/modules/graphics/jsl.cpp b/src/lua/modules/graphics/jsl.cpp index ccd9ebd..58de46a 100644 --- a/src/lua/modules/graphics/jsl.cpp +++ b/src/lua/modules/graphics/jsl.cpp @@ -11,8 +11,9 @@ namespace lua using namespace jin::graphics; typedef Texture Image; + typedef Ref<JSLProgram>& JSLRef; - static inline Ref<JSLProgram>& checkJSLProgram(lua_State* L) + static inline JSLRef checkJSLProgram(lua_State* L) { Proxy* proxy = (Proxy*)luax_checktype(L, 1, JIN_GRAPHICS_SHADER); return proxy->getRef<JSLProgram>(); @@ -49,7 +50,7 @@ namespace lua */ static int l_send(lua_State* L) { - Ref<JSLProgram>& ref = checkJSLProgram(L); + JSLRef ref = checkJSLProgram(L); // number Image Texel const char* typestr = luax_checkstring(L, 2); // variable name |