mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
# 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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user