Skip to content

Commit

Permalink
Main: Material - partly revert 934950f
Browse files Browse the repository at this point in the history
as it broke correct prepare of textures
  • Loading branch information
paroj committed Mar 10, 2024
1 parent 08aa0ad commit ca3f442
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OgreMain/src/OgreMaterial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ namespace Ogre {
//-----------------------------------------------------------------------
void Material::prepareImpl(void)
{
// compile if required
if (mCompilationRequired)
compile();

// Load all supported techniques
for (auto *t : mSupportedTechniques)
{
Expand All @@ -132,10 +136,6 @@ namespace Ogre {
{
t->_load();
}

// compile if required
if (mCompilationRequired)
compile();
}
//-----------------------------------------------------------------------
void Material::unloadImpl(void)
Expand Down

0 comments on commit ca3f442

Please sign in to comment.