Skip to content

Commit 2ec5bae

Browse files
committed
Increase depth to 24
1 parent 75edc27 commit 2ec5bae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kivy/core/window/_window_sdl3.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,14 @@ cdef class _WindowSDL3Storage:
156156

157157
def _set_sdl_gl_common_attributes(self):
158158
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1)
159-
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16)
159+
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24)
160160
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8)
161161
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8)
162162
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8)
163163
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8)
164164

165165
config_alpha_size = Config.getint('graphics', 'alpha_size')
166-
SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 0)
166+
SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, config_alpha_size)
167167

168168
SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1)
169169

0 commit comments

Comments
 (0)