mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Remove unnecesary code for handle OpenGL.
This commit is contained in:
parent
c354f59b72
commit
f101fbe820
5 changed files with 7 additions and 31 deletions
|
|
@ -289,9 +289,7 @@ void ProcessedMaterial::_initPassStateBlock( RenderPassData *rpd, GFXStateBlockD
|
|||
|
||||
// The prepass will take care of writing to the
|
||||
// zbuffer, so we don't have to by default.
|
||||
// The prepass can't write to the backbuffer's zbuffer in OpenGL.
|
||||
if ( MATMGR->getPrePassEnabled() &&
|
||||
!GFX->getAdapterType() == OpenGL &&
|
||||
!mFeatures.hasFeature(MFT_ForwardShading))
|
||||
result.setZReadWrite( result.zEnable, false );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue