Skip to content
Snippets Groups Projects
Commit e08ebac5 authored by sphere's avatar sphere
Browse files

Merge branch 'depth-buffer-24' into 'next'

Request 24-bit depth buffer from SDL

See merge request STJr/SRB2!1635
parents 70161ff5 91aeba6c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment