1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-07-06 00:51:35 +00:00

Fix incorrect reading of global map state in some cases when the map size changed (Fixes #1946)

This commit is contained in:
scrawl 2014-09-25 15:28:02 +02:00
parent ad318c1f9d
commit 2066097202

View file

@ -326,7 +326,8 @@ namespace MWRender
mOverlayTexture->getBuffer()->blit(tex->getBuffer(), srcBox, destBox); mOverlayTexture->getBuffer()->blit(tex->getBuffer(), srcBox, destBox);
if (srcBox.left == destBox.left && srcBox.right == destBox.right if (srcBox.left == destBox.left && srcBox.right == destBox.right
&& srcBox.top == destBox.top && srcBox.bottom == destBox.bottom) && srcBox.top == destBox.top && srcBox.bottom == destBox.bottom
&& int(image.getWidth()) == mWidth && int(image.getHeight()) == mHeight)
mOverlayImage = image; mOverlayImage = image;
else else
mOverlayTexture->convertToImage(mOverlayImage); mOverlayTexture->convertToImage(mOverlayImage);