When there are no caches, this variable would be uninitialized.
Reported by clang-scan.
Not sure if that can ever happen, but IMHO initializing doesn't do harm.
--
v2: kerberos: Avoid potentially uninitialized variable (clang-scan)
https://gitlab.winehq.org/wine/wine/-/merge_requests/3058
Recent nameless struct/union changes broke MSVC Clang builds. That's because `VARIANT` still doesn't skip names when `__STDC__` is defined, which is true for most configs.
--
v2: include: Don't force named VARIANT members when __STDC__ is defined.
https://gitlab.winehq.org/wine/wine/-/merge_requests/3256
This MR optimizes and makes correctness improvements to the window_surface flush implementation:
1. Implement a buffer queue to avoid constantly allocating new buffers.
2. Take into account the bounds of the window_surface flush and track per-buffer damage to reduce copying from the window_surface.
3. Copy from the window_surface only pixel data that lies within the flushed bounds. Maintain the latest contents for pixels outside these bounds, by copying them from the latest valid buffer.
4. Communicate damaged surface regions to the compositor to allow it to perform more efficient pixel data transfers (e.g., texture uploads).
Thanks!
--
v3: winewayland.drv: Send surface damage region to the compositor.
winewayland.drv: Update only the flushed bounds from the window_surface.
winewayland.drv: Track damaged buffer regions.
winewayland.drv: Use a buffer queue for window_surface.
https://gitlab.winehq.org/wine/wine/-/merge_requests/3234
Recent nameless struct/union changes broke MSVC Clang builds. That's because `VARIANT` still doesn't skip names when `__STDC__` is defined, which is true for most configs.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/3256