70f930eef70808dac9deb98244a2d429c2c7c2a8
The loading branch of ensure_viewport_cache captured v_offset before the params_changed block, which could reassign self.v_offset. This caused the viewport to use a stale offset when loading + width/format changed together. Remove the stale local variable and read self.v_offset directly, consistent with the non-loading branch. Add regression test.
Description
No description provided
Languages
Rust
100%