Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vlad Doc
SRB2
Commits
91aeba6c
Commit
91aeba6c
authored
3 years ago
by
Hannu Hanhi
Browse files
Options
Downloads
Patches
Plain Diff
Request 24-bit depth buffer from SDL
Should fix problems caused by 16-bit depth buffer usage
parent
8b021ec1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sdl/i_video.c
+5
-0
5 additions, 0 deletions
src/sdl/i_video.c
with
5 additions
and
0 deletions
src/sdl/i_video.c
+
5
−
0
View file @
91aeba6c
...
@@ -1620,6 +1620,11 @@ static SDL_bool Impl_CreateWindow(SDL_bool fullscreen)
...
@@ -1620,6 +1620,11 @@ static SDL_bool Impl_CreateWindow(SDL_bool fullscreen)
#ifdef HWRENDER
#ifdef HWRENDER
if
(
vid
.
glstate
==
VID_GL_LIBRARY_LOADED
)
if
(
vid
.
glstate
==
VID_GL_LIBRARY_LOADED
)
flags
|=
SDL_WINDOW_OPENGL
;
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
#endif
// Create a window
// Create a window
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment