From c0c195ec476b137779deef534f18f0a81861bcd4 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Wed, 7 Dec 2022 22:51:42 -0400 Subject: [PATCH] Fix lua wrapper return value count for Texture:setWrap. --- src/modules/graphics/wrap_Texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/wrap_Texture.cpp b/src/modules/graphics/wrap_Texture.cpp index 4a416a097..e657fffce 100644 --- a/src/modules/graphics/wrap_Texture.cpp +++ b/src/modules/graphics/wrap_Texture.cpp @@ -242,7 +242,7 @@ int w_Texture_setWrap(lua_State *L) return luax_enumerror(L, "wrap mode", SamplerState::getConstants(s.wrapW), rstr); luax_catchexcept(L, [&](){ t->setSamplerState(s); }); - return 1; + return 0; } int w_Texture_getWrap(lua_State *L)