X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=theme.cpp;h=c832d29bcf9a19af4e1269690b355cd876ad6e53;hb=c996b8ab73e27736a1807a3cc6df329c9fc46d4c;hp=166dcb577dfa0bd6de2ef45378b99b01c527bede;hpb=727f4f46369c938e5994eb89acbda1369a9bfc35;p=nageru diff --git a/theme.cpp b/theme.cpp index 166dcb5..c832d29 100644 --- a/theme.cpp +++ b/theme.cpp @@ -142,10 +142,11 @@ std::string checkstdstring(lua_State *L, int index) int EffectChain_new(lua_State* L) { assert(lua_gettop(L) == 2); + Theme *theme = get_theme_updata(L); int aspect_w = luaL_checknumber(L, 1); int aspect_h = luaL_checknumber(L, 2); - return wrap_lua_object(L, "EffectChain", aspect_w, aspect_h); + return wrap_lua_object(L, "EffectChain", aspect_w, aspect_h, theme->get_resource_pool()); } int EffectChain_add_live_input(lua_State* L)