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

@ -542,10 +542,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 );