瀏覽代碼

Fix lua wrapper return value count for Texture:setWrap.

Sasha Szpakowski 2 年之前
父節點
當前提交
c0c195ec47
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/graphics/wrap_Texture.cpp

+ 1 - 1
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);
 		return luax_enumerror(L, "wrap mode", SamplerState::getConstants(s.wrapW), rstr);
 
 
 	luax_catchexcept(L, [&](){ t->setSamplerState(s); });
 	luax_catchexcept(L, [&](){ t->setSamplerState(s); });
-	return 1;
+	return 0;
 }
 }
 
 
 int w_Texture_getWrap(lua_State *L)
 int w_Texture_getWrap(lua_State *L)