Fixed bug #7462 - 8888 as default GL backbuffer red/green/blue/alpha bit sizes

main
Sylvain 2023-03-16 20:30:56 +01:00 committed by Sam Lantinga
parent f9ac7b4044
commit 5da9e99da0
2 changed files with 8 additions and 8 deletions

View File

@ -96,10 +96,10 @@ SDLTest_CommonCreateState(char **argv, Uint32 flags)
state->audiospec.samples = 2048;
/* Set some very sane GL defaults */
state->gl_red_size = 3;
state->gl_green_size = 3;
state->gl_blue_size = 2;
state->gl_alpha_size = 0;
state->gl_red_size = 8;
state->gl_green_size = 8;
state->gl_blue_size = 8;
state->gl_alpha_size = 8;
state->gl_buffer_size = 0;
state->gl_depth_size = 16;
state->gl_stencil_size = 0;

View File

@ -3798,10 +3798,10 @@ void SDL_GL_ResetAttributes(void)
_this->egl_surfaceattrib_callback = NULL;
_this->egl_contextattrib_callback = NULL;
_this->gl_config.red_size = 3;
_this->gl_config.green_size = 3;
_this->gl_config.blue_size = 2;
_this->gl_config.alpha_size = 0;
_this->gl_config.red_size = 8;
_this->gl_config.green_size = 8;
_this->gl_config.blue_size = 8;
_this->gl_config.alpha_size = 8;
_this->gl_config.buffer_size = 0;
_this->gl_config.depth_size = 16;
_this->gl_config.stencil_size = 0;