mirror of
https://github.com/luanti-org/luanti.git
synced 2025-12-21 14:15:34 +01:00
Move SMaterial std::hash impl to its header
This commit is contained in:
@@ -469,14 +469,12 @@ void CSceneManager::drawAll()
|
||||
if (!Driver)
|
||||
return;
|
||||
|
||||
u32 i; // new ISO for scoping problem in some compilers
|
||||
|
||||
// reset all transforms
|
||||
Driver->setMaterial(video::SMaterial());
|
||||
Driver->setTransform(video::ETS_PROJECTION, core::IdentityMatrix);
|
||||
Driver->setTransform(video::ETS_VIEW, core::IdentityMatrix);
|
||||
Driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
|
||||
for (i = video::ETS_COUNT - 1; i >= video::ETS_TEXTURE_0; --i)
|
||||
for (u32 i = video::ETS_COUNT - 1; i >= video::ETS_TEXTURE_0; --i)
|
||||
Driver->setTransform((video::E_TRANSFORMATION_STATE)i, core::IdentityMatrix);
|
||||
// TODO: This should not use an attribute here but a real parameter when necessary (too slow!)
|
||||
Driver->setAllowZWriteOnTransparent(Parameters->getAttributeAsBool(ALLOW_ZWRITE_ON_TRANSPARENT));
|
||||
|
||||
Reference in New Issue
Block a user