Lines 293-299
namespace MyGUI
Link Here
|
293 |
{ |
293 |
{ |
294 |
OgreTexture* texture = static_cast<OgreTexture*>(_texture); |
294 |
OgreTexture* texture = static_cast<OgreTexture*>(_texture); |
295 |
Ogre::TexturePtr texture_ptr = texture->getOgreTexture(); |
295 |
Ogre::TexturePtr texture_ptr = texture->getOgreTexture(); |
296 |
if (!texture_ptr.isNull()) |
296 |
if (!texture_ptr) |
297 |
{ |
297 |
{ |
298 |
mRenderSystem->_setTexture(0, true, texture_ptr); |
298 |
mRenderSystem->_setTexture(0, true, texture_ptr); |
299 |
mRenderSystem->_setTextureUnitFiltering(0, Ogre::FO_LINEAR, Ogre::FO_LINEAR, Ogre::FO_NONE); |
299 |
mRenderSystem->_setTextureUnitFiltering(0, Ogre::FO_LINEAR, Ogre::FO_LINEAR, Ogre::FO_NONE); |
Lines 387-393
namespace MyGUI
Link Here
|
387 |
if (item == mTextures.end()) |
387 |
if (item == mTextures.end()) |
388 |
{ |
388 |
{ |
389 |
Ogre::TexturePtr texture = (Ogre::TexturePtr)Ogre::TextureManager::getSingleton().getByName(_name); |
389 |
Ogre::TexturePtr texture = (Ogre::TexturePtr)Ogre::TextureManager::getSingleton().getByName(_name); |
390 |
if (!texture.isNull()) |
390 |
if (!texture) |
391 |
{ |
391 |
{ |
392 |
ITexture* result = createTexture(_name); |
392 |
ITexture* result = createTexture(_name); |
393 |
static_cast<OgreTexture*>(result)->setOgreTexture(texture); |
393 |
static_cast<OgreTexture*>(result)->setOgreTexture(texture); |