# Render unit silhouettes when behind buildings.

Fixes #144.
Start using stencil buffer.
Simplify materials a little.

This was SVN commit r9076.
This commit is contained in:
Ykkrosh
2011-03-18 16:57:54 +00:00
parent d49994a0b4
commit d805e764c5
20 changed files with 285 additions and 114 deletions
+1
View File
@@ -154,6 +154,7 @@ bool CVideoMode::InitSDL()
int bpp = GetBestBPP();
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, g_VSync ? 1 : 0);