File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -471,8 +471,21 @@ void VulkanWindow::Render()
471471 int fbHeight = 0 ;
472472 glfwGetFramebufferSize (m_window, &fbWidth, &fbHeight);
473473 if ( (fbWidth != m_width) || (fbHeight != m_height) )
474+ {
474475 m_resizeEventPending = true ;
475476
477+ // Windows: this can fail and return 0x0 if window is minimized, which throws things off
478+ // Just bail and don't draw anything in this case.
479+ // See https://github.com/ngscopeclient/scopehal-apps/issues/893
480+ #ifdef _WIN32
481+ if (glfwGetWindowAttrib (m_window, GLFW_ICONIFIED))
482+ {
483+ this_thread::sleep_for (chrono::milliseconds (10 ));
484+ return ;
485+ }
486+ #endif
487+ }
488+
476489 // If we're re-rendering after the window size changed, fix up the framebuffer before we worry about anything else
477490 if (m_resizeEventPending)
478491 {
You can’t perform that action at this time.
0 commit comments