Merge pull request #929 from BeamNG/remove_old_opengl_code

Remove unnecesary code for handle OpenGL.
This commit is contained in:
LuisAntonRebollo 2014-11-30 02:22:24 +01:00
commit 2f8d18c0c0
5 changed files with 7 additions and 31 deletions

View file

@ -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 );