mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-03 17:54:06 +00:00
Avoid double-setting the material texture
This commit is contained in:
parent
e9d833be03
commit
3f6d36c712
@ -949,7 +949,7 @@ VideoPlayer::VideoPlayer(Ogre::SceneManager* sceneMgr)
|
||||
mVideoMaterial->getTechnique(0)->getPass(0)->setDepthWriteEnabled(false);
|
||||
mVideoMaterial->getTechnique(0)->getPass(0)->setDepthCheckEnabled(false);
|
||||
mVideoMaterial->getTechnique(0)->getPass(0)->setLightingEnabled(false);
|
||||
mVideoMaterial->getTechnique(0)->getPass(0)->createTextureUnitState()->setTextureName("black.png");
|
||||
mVideoMaterial->getTechnique(0)->getPass(0)->createTextureUnitState();
|
||||
}
|
||||
mVideoMaterial->getTechnique(0)->getPass(0)->getTextureUnitState(0)->setTextureName("black.png");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user