From 290833c94f62204b487beb9da3ddb6c440410f96 Mon Sep 17 00:00:00 2001 From: RadialApps Date: Tue, 8 Aug 2017 16:27:11 +0530 Subject: [PATCH] Switch color space to 24-bit --- src/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index e47e12e..805dc7b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -266,6 +266,14 @@ int main(int argc, char *argv[]) } SDL_Window *win; + + /* Set the color space to 24 bit */ + SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8); + SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8); + SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); + SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 0); + SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0); + Uint32 winFlags = SDL_WINDOW_OPENGL | SDL_WINDOW_INPUT_FOCUS; if (conf.winResizable)