Fix silhouettes being displayed for some models that always stick into the ground

This was SVN commit r9117.
This commit is contained in:
Ykkrosh
2011-03-24 23:54:08 +00:00
parent 1eb5eeb225
commit afbfca17ce
+6
View File
@@ -1218,7 +1218,13 @@ void CRenderer::RenderSilhouettes()
{
PROFILE("render patches");
// To prevent units displaying silhouettes when parts of their model
// protrude into the ground, only occlude with the back faces of the
// terrain (so silhouettes will still display when behind hills)
glCullFace(GL_FRONT);
m->terrainRenderer->RenderPatches();
glCullFace(GL_BACK);
}
{