only apply workaround for [#33223] when using intel cards on windows.
This commit is contained in:
@@ -796,15 +796,18 @@ void wm_draw_update(bContext *C)
|
||||
GPU_free_unused_buffers();
|
||||
|
||||
for (win = wm->windows.first; win; win = win->next) {
|
||||
int state = GHOST_GetWindowState(win->ghostwin);
|
||||
#ifdef WIN32
|
||||
if (GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_ANY, GPU_DRIVER_ANY)) {
|
||||
GHOST_TWindowState state = GHOST_GetWindowState(win->ghostwin);
|
||||
|
||||
if (state == GHOST_kWindowStateMinimized) {
|
||||
/* do not update minimized windows, it gives issues on intel drivers (see [#33223])
|
||||
* anyway, it seems logical to skip update for invisible windows
|
||||
*/
|
||||
continue;
|
||||
if (state == GHOST_kWindowStateMinimized) {
|
||||
/* do not update minimized windows, it gives issues on intel drivers (see [#33223])
|
||||
* anyway, it seems logical to skip update for invisible windows
|
||||
*/
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
if (win->drawmethod != U.wmdrawmethod) {
|
||||
wm_draw_window_clear(win);
|
||||
win->drawmethod = U.wmdrawmethod;
|
||||
|
Reference in New Issue
Block a user