Repository navigation
Mixar 4.5.2
Patch release: a Windows-only fix for a graphics driver crash when the Agent island and pill windows are created.
Window Manager (C++)
- Windows: skip the eager first present on agent bubble windows (#2158).
wm_window_ghostwindow_add(src/source/blender/windowmanager/intern/wm_window.cc) clears and presents every new window once in the theme color before its screens draw. Under NVIDIA's "Prefer layered on DXGI swapchain" Vulkan present (the Optimus laptop path), that first present of an owned popup window crashednvoglv64.dll.- Under
#ifdef _WIN32, windows for whichMixar_window_has_agent_bubble(win)is true (the island and the pill) now skip the acquire/clear/release. They still callWM_window_dpi_set_userdef(win)andGPU_render_end(), then return, because the DPI must be set before anything readsUserDef. - Bisection points at the pill's first present followed by its resize. Not opening the pill also avoided the crash, so both windows skip the eager present.
- The first real draw, normally in the same main-loop pass, is now the first present. Until then the HWND shows the class background (dark gray).
- macOS, Linux and every non-bubble window keep the upstream clear.
- Under
- Regression coverage:
tests/test_bubble_window_eager_present.pypins that the skip is Windows-only, precedes the eager acquire, keeps the DPI andGPU_render_end()calls, and leaves the upstream clear path intact for other windows.
Docs
docs/modules/agent-bubble.md: added "Window creation: no eager first present on Windows".
Build
- Version bumped to 4.5.2 (
VERSION,MIXAR_VERSION_PATCHinBKE_blender_version.h).
⚠️ Notes
- The fix affects Windows only. Agent island and pill windows may briefly show the window class background (dark gray) before their first draw.