Remove unnecesary code for handle OpenGL.

This commit is contained in:
LuisAntonRebollo 2014-11-08 01:21:38 +01:00
parent c354f59b72
commit f101fbe820
5 changed files with 7 additions and 31 deletions

View file

@ -528,10 +528,7 @@ bool TerrainCellMaterial::_createPass( Vector<MaterialInfo*> *materials,
// We write to the zbuffer if this is a prepass
// material or if the prepass is disabled.
// We also write the zbuffer if we're using OpenGL, because in OpenGL the prepass
// cannot share the same zbuffer as the backbuffer.
desc.setZReadWrite( true, !MATMGR->getPrePassEnabled() ||
GFX->getAdapterType() == OpenGL ||
prePassMat ||
reflectMat );