mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 09:32:45 +00:00
Do not copy global map texture during savegame loading (bug #5308)
This commit is contained in:
parent
bbca1f3d1d
commit
8e1e4d6757
@ -204,6 +204,7 @@
|
||||
Bug #5269: Editor: Cell lighting in resaved cleaned content files is corrupted
|
||||
Bug #5278: Console command Show doesn't fall back to global variable after local var not found
|
||||
Bug #5300: NPCs don't switch from torch to shield when starting combat
|
||||
Bug #5308: World map copying makes save loading much slower
|
||||
Feature #1774: Handle AvoidNode
|
||||
Feature #2229: Improve pathfinding AI
|
||||
Feature #3025: Analogue gamepad movement controls
|
||||
|
@ -457,7 +457,7 @@ namespace MWRender
|
||||
if (map.mImageData.empty())
|
||||
return;
|
||||
|
||||
Files::IMemStream istream(&map.mImageData[0], map.mImageData.size());
|
||||
Files::IMemStream istream(map.mImageData.data(), map.mImageData.size());
|
||||
|
||||
osgDB::ReaderWriter* readerwriter = osgDB::Registry::instance()->getReaderWriterForExtension("png");
|
||||
if (!readerwriter)
|
||||
@ -522,7 +522,7 @@ namespace MWRender
|
||||
|
||||
if (srcBox == destBox && imageWidth == mWidth && imageHeight == mHeight)
|
||||
{
|
||||
mOverlayImage->copySubImage(0, 0, 0, image);
|
||||
mOverlayImage = image;
|
||||
|
||||
requestOverlayTextureUpdate(0, 0, mWidth, mHeight, texture, true, false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user