From c5dc39c02de21ede256e0e08501f8e353dcdb773 Mon Sep 17 00:00:00 2001 From: hecomi Date: Tue, 4 May 2021 01:46:15 +0900 Subject: [PATCH] fix resize bug #27. --- Plugins/uWindowCapture/uWindowCapture/WindowTexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/uWindowCapture/uWindowCapture/WindowTexture.cpp b/Plugins/uWindowCapture/uWindowCapture/WindowTexture.cpp index 717ddac..963993c 100644 --- a/Plugins/uWindowCapture/uWindowCapture/WindowTexture.cpp +++ b/Plugins/uWindowCapture/uWindowCapture/WindowTexture.cpp @@ -468,7 +468,7 @@ bool WindowTexture::RecreateSharedTextureIfNeeded() { D3D11_TEXTURE2D_DESC desc; unityTexture_.load()->GetDesc(&desc); - if (desc.Width != GetWidth() && desc.Height != GetHeight()) + if (desc.Width != GetWidth() || desc.Height != GetHeight()) { MessageManager::Get().Add({ MessageType::TextureSizeError, window_->GetId(), nullptr }); return false;