mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1222123 - Warning fix in CompositorD3D11.cpp. r=Bas
This commit is contained in:
parent
c76a8adec5
commit
65f0364cdd
@ -546,9 +546,7 @@ CompositorD3D11::CreateRenderTargetFromSource(const gfx::IntRect &aRect,
|
||||
const IntSize& srcSize = sourceD3D11->GetSize();
|
||||
MOZ_ASSERT(srcSize.width >= 0 && srcSize.height >= 0,
|
||||
"render targets should have nonnegative sizes");
|
||||
if (srcBox.left >= 0 &&
|
||||
srcBox.top >= 0 &&
|
||||
srcBox.left < srcBox.right &&
|
||||
if (srcBox.left < srcBox.right &&
|
||||
srcBox.top < srcBox.bottom &&
|
||||
srcBox.right <= static_cast<uint32_t>(srcSize.width) &&
|
||||
srcBox.bottom <= static_cast<uint32_t>(srcSize.height)) {
|
||||
|
Loading…
Reference in New Issue
Block a user