mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
Merge pull request #929 from BeamNG/remove_old_opengl_code
Remove unnecesary code for handle OpenGL.
This commit is contained in:
commit
2f8d18c0c0
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