1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 09:53:52 +00:00

fix texture edge bleeding due to wrong addressing mode

This commit is contained in:
scrawl 2012-12-28 19:01:47 +01:00
parent 64210e6efa
commit ade4ec0453

View file

@ -1019,6 +1019,7 @@ VideoPlayer::VideoPlayer(Ogre::SceneManager* sceneMgr)
mVideoMaterial->getTechnique(0)->getPass(0)->setDepthCheckEnabled(false);
mVideoMaterial->getTechnique(0)->getPass(0)->setLightingEnabled(false);
mVideoMaterial->getTechnique(0)->getPass(0)->createTextureUnitState();
mVideoMaterial->getTechnique(0)->getPass(0)->getTextureUnitState(0)->setTextureAddressingMode(Ogre::TextureUnitState::TAM_CLAMP);
}
mVideoMaterial->getTechnique(0)->getPass(0)->getTextureUnitState(0)->setTextureName("black.png");