소스 검색

Fix lua wrapper return value count for Texture:setWrap.

Sasha Szpakowski 3 년 전
부모
커밋
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);
 
 	luax_catchexcept(L, [&](){ t->setSamplerState(s); });
-	return 1;
+	return 0;
 }
 
 int w_Texture_getWrap(lua_State *L)