1 parent 75edc27 commit 2ec5baeCopy full SHA for 2ec5bae
1 file changed
kivy/core/window/_window_sdl3.pyx
@@ -156,14 +156,14 @@ cdef class _WindowSDL3Storage:
156
157
def _set_sdl_gl_common_attributes(self):
158
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1)
159
- SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16)
+ SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24)
160
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8)
161
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8)
162
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8)
163
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8)
164
165
config_alpha_size = Config.getint('graphics', 'alpha_size')
166
- SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 0)
+ SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, config_alpha_size)
167
168
SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1)
169
0 commit comments