This commit is contained in:
colette 2020-02-12 08:54:20 -05:00
parent b7a6773ff5
commit d3e5cbffba

View file

@ -268,8 +268,7 @@ static int patch_get(lua_State *L)
#endif #endif
enum patch field = luaL_checkoption(L, 2, NULL, patch_opt); enum patch field = luaL_checkoption(L, 2, NULL, patch_opt);
// patches are CURRENTLY always valid, expected to be cached with PU_STATIC // patches are invalidated when switching renderers
// this may change in the future, so patch.valid still exists
if (!patch) { if (!patch) {
if (field == patch_valid) { if (field == patch_valid) {
lua_pushboolean(L, 0); lua_pushboolean(L, 0);