forked from mirror/openmw-tes3mp
clean up
This commit is contained in:
parent
11922dc53a
commit
1ac220593d
2 changed files with 4 additions and 8 deletions
|
@ -13,7 +13,6 @@
|
|||
#include <extern/shiny/Platforms/Ogre/OgrePlatform.hpp>
|
||||
|
||||
#include <components/ogreinit/ogreinit.hpp>
|
||||
#include <Overlay/OgreFontManager.h>
|
||||
|
||||
#include <components/bsa/resources.hpp>
|
||||
|
||||
|
|
|
@ -99,16 +99,13 @@ bool CSVRender::PagedWorldspaceWidget::adjustCells()
|
|||
painter.setPen(Qt::white);
|
||||
painter.drawText(QRect(0, 0, 1024, 1024), Qt::AlignCenter, QString(text.c_str()));
|
||||
|
||||
Ogre::TexturePtr texture;
|
||||
if (Ogre::TextureManager::getSingleton().resourceExists("CellBillboardTexture" + iter->getId(mWorldspace)))
|
||||
{
|
||||
texture = Ogre::TextureManager::getSingleton().getByName("CellBillboardTexture" + iter->getId(mWorldspace));
|
||||
}
|
||||
else
|
||||
|
||||
Ogre::TexturePtr texture = Ogre::TextureManager::getSingleton().getByName("CellBillboardTexture" + iter->getId(mWorldspace));
|
||||
if (texture.isNull())
|
||||
{
|
||||
texture = Ogre::TextureManager::getSingleton().createManual("CellBillboardTexture" + iter->getId(mWorldspace),
|
||||
Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,
|
||||
Ogre::TEX_TYPE_2D, 1024, 1024, 1, Ogre::PF_X8R8G8B8, Ogre::TU_DEFAULT);
|
||||
Ogre::TEX_TYPE_2D, 1024, 1024, 5, Ogre::PF_X8R8G8B8, Ogre::TU_DEFAULT);
|
||||
|
||||
int w = 1024;
|
||||
int h = 1024;
|
||||
|
|
Loading…
Reference in a new issue