Removed RAW support to compile for Emscripten, fixed bug in cache in online use

This commit is contained in:
Yousef Khadadeh 2025-08-13 19:23:14 +03:00
parent c685da008b
commit f155905185
5 changed files with 21 additions and 14 deletions

View file

@ -53,8 +53,9 @@ DrawingProgram::DrawingProgram(World& initWorld):
for(auto& c : comps)
components.clientInsertCallback(c);
};
components.clientServerLastPosShiftCallback = [&](uint64_t lastShiftPos) {
compCache.invalidate_cache_before_pos(lastShiftPos);
components.clientServerFirstPosShiftCallback = [&](uint64_t firstShiftPos) {
compCache.clear_own_cached_surfaces();
selection.clear_own_cached_surfaces();
};
}