mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-16 09:02:06 +00:00
Merge branch 'depth-buffer-24' into 'next'
Request 24-bit depth buffer from SDL See merge request STJr/SRB2!1635
This commit is contained in:
commit
e08ebac5c8
1 changed files with 5 additions and 0 deletions
|
@ -1633,6 +1633,11 @@ static SDL_bool Impl_CreateWindow(SDL_bool fullscreen)
|
|||
#ifdef HWRENDER
|
||||
if (vid.glstate == VID_GL_LIBRARY_LOADED)
|
||||
flags |= SDL_WINDOW_OPENGL;
|
||||
|
||||
// Without a 24-bit depth buffer many visuals are ruined by z-fighting.
|
||||
// Some GPU drivers may give us a 16-bit depth buffer since the
|
||||
// default value for SDL_GL_DEPTH_SIZE is 16.
|
||||
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
|
||||
#endif
|
||||
|
||||
// Create a window
|
||||
|
|
Loading…
Reference in a new issue