Skip to content

Commit

Permalink
fix resize bug #27.
Browse files Browse the repository at this point in the history
  • Loading branch information
hecomi committed May 3, 2021
1 parent 7fb3660 commit c5dc39c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugins/uWindowCapture/uWindowCapture/WindowTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c5dc39c

Please sign in to comment.