mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Move SMaterial std::hash impl to its header
This commit is contained in:
parent
a799a54894
commit
810f39767c
4 changed files with 35 additions and 56 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue