mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 01:15:33 +00:00
Merge remote-tracking branch 'scrawl/globalmap' into next
This commit is contained in:
commit
8da00caaa4
1 changed files with 3 additions and 2 deletions
|
@ -48,7 +48,8 @@ namespace MWRender
|
|||
mHeight = cellSize*(mMaxY-mMinY+1);
|
||||
|
||||
|
||||
if (!boost::filesystem::exists(mCacheDir + "/GlobalMap.png"))
|
||||
//if (!boost::filesystem::exists(mCacheDir + "/GlobalMap.png"))
|
||||
if (1)
|
||||
{
|
||||
Ogre::Image image;
|
||||
|
||||
|
@ -151,7 +152,7 @@ namespace MWRender
|
|||
|
||||
image.loadDynamicImage (data, mWidth, mHeight, Ogre::PF_B8G8R8);
|
||||
|
||||
image.save (mCacheDir + "/GlobalMap.png");
|
||||
//image.save (mCacheDir + "/GlobalMap.png");
|
||||
|
||||
tex = Ogre::TextureManager::getSingleton ().createManual ("GlobalMap.png", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,
|
||||
Ogre::TEX_TYPE_2D, mWidth, mHeight, 0, Ogre::PF_B8G8R8, Ogre::TU_DEFAULT);
|
||||
|
|
Loading…
Reference in a new issue