Forráskód Böngészése

Another fix for crashing with VK_DEVICE_LOST (#3404)

Matt Tytel 11 hónapja
szülő
commit
736bffa3dd
1 módosított fájl, 4 hozzáadás és 4 törlés
  1. 4 4
      src/renderer_vk.cpp

+ 4 - 4
src/renderer_vk.cpp

@@ -7819,10 +7819,10 @@ VK_DESTROY
 		}
 		}
 
 
 		m_denseIdx = _denseIdx;
 		m_denseIdx = _denseIdx;
-		m_nwh = _nwh;
-		m_width = _width;
-		m_height = _height;
-		m_sampler = m_swapChain.m_sampler;
+		m_nwh      = _nwh;
+		m_width    = m_swapChain.m_sci.imageExtent.width;
+		m_height   = m_swapChain.m_sci.imageExtent.height;
+		m_sampler  = m_swapChain.m_sampler;
 
 
 		return result;
 		return result;
 	}
 	}