mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-30 16:37:39 +00:00
Fixed bug #7462 - 8888 as default GL backbuffer red/green/blue/alpha bit sizes
This commit is contained in:
parent
f9ac7b4044
commit
5da9e99da0
2 changed files with 8 additions and 8 deletions
|
@ -96,10 +96,10 @@ SDLTest_CommonCreateState(char **argv, Uint32 flags)
|
||||||
state->audiospec.samples = 2048;
|
state->audiospec.samples = 2048;
|
||||||
|
|
||||||
/* Set some very sane GL defaults */
|
/* Set some very sane GL defaults */
|
||||||
state->gl_red_size = 3;
|
state->gl_red_size = 8;
|
||||||
state->gl_green_size = 3;
|
state->gl_green_size = 8;
|
||||||
state->gl_blue_size = 2;
|
state->gl_blue_size = 8;
|
||||||
state->gl_alpha_size = 0;
|
state->gl_alpha_size = 8;
|
||||||
state->gl_buffer_size = 0;
|
state->gl_buffer_size = 0;
|
||||||
state->gl_depth_size = 16;
|
state->gl_depth_size = 16;
|
||||||
state->gl_stencil_size = 0;
|
state->gl_stencil_size = 0;
|
||||||
|
|
|
@ -3798,10 +3798,10 @@ void SDL_GL_ResetAttributes(void)
|
||||||
_this->egl_surfaceattrib_callback = NULL;
|
_this->egl_surfaceattrib_callback = NULL;
|
||||||
_this->egl_contextattrib_callback = NULL;
|
_this->egl_contextattrib_callback = NULL;
|
||||||
|
|
||||||
_this->gl_config.red_size = 3;
|
_this->gl_config.red_size = 8;
|
||||||
_this->gl_config.green_size = 3;
|
_this->gl_config.green_size = 8;
|
||||||
_this->gl_config.blue_size = 2;
|
_this->gl_config.blue_size = 8;
|
||||||
_this->gl_config.alpha_size = 0;
|
_this->gl_config.alpha_size = 8;
|
||||||
_this->gl_config.buffer_size = 0;
|
_this->gl_config.buffer_size = 0;
|
||||||
_this->gl_config.depth_size = 16;
|
_this->gl_config.depth_size = 16;
|
||||||
_this->gl_config.stencil_size = 0;
|
_this->gl_config.stencil_size = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue