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;