[client] require 8 bit colour when creating OpenGL context

For some reason, if we don't ask for 8-bit, wayland will give a context with
lower bit depth, which looks terrible.
This commit is contained in:
Quantum 2021-01-03 23:29:34 -05:00 committed by Geoffrey McRae
parent 1ca5e439c1
commit 78b1f64a61

View file

@ -261,6 +261,9 @@ bool opengl_initialize(void * opaque, Uint32 * sdlFlags)
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER , 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4);
SDL_GL_SetAttribute(SDL_GL_RED_SIZE , 8);
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE , 8);
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE , 8);
return true;
}