Commit 1edc55c9 authored by hybrid's avatar hybrid

Fixed a missing function call, found by night_hawk.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1561 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 529b6f0f
...@@ -1678,7 +1678,7 @@ void CD3D9Driver::setBasicRenderStates(const SMaterial& material, const SMateria ...@@ -1678,7 +1678,7 @@ void CD3D9Driver::setBasicRenderStates(const SMaterial& material, const SMateria
// zwrite // zwrite
// if (resetAllRenderstates || (lastmaterial.ZWriteEnable != material.ZWriteEnable)) // if (resetAllRenderstates || (lastmaterial.ZWriteEnable != material.ZWriteEnable))
{ {
if ( material.ZWriteEnable && !(DisableZWriteOnTransparent && material.isTransparent)) if ( material.ZWriteEnable && !(DisableZWriteOnTransparent && material.isTransparent()))
pID3DDevice->SetRenderState( D3DRS_ZWRITEENABLE, TRUE); pID3DDevice->SetRenderState( D3DRS_ZWRITEENABLE, TRUE);
else else
pID3DDevice->SetRenderState( D3DRS_ZWRITEENABLE, FALSE); pID3DDevice->SetRenderState( D3DRS_ZWRITEENABLE, FALSE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment