]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_sdl.c
vid_bitsperpixel is now locked to 32.
[xonotic/darkplaces.git] / vid_sdl.c
index ca3fa057aa94f546f6ed2fe62233eef030132ec8..097148be1aefc22cb943266f7ac80555b45f4cb2 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -2531,22 +2531,12 @@ static qboolean VID_InitModeGL(viddef_mode_t *mode)
        //flags |= SDL_HWSURFACE;
 
        SDL_GL_SetAttribute (SDL_GL_DOUBLEBUFFER, 1);
-       if (mode->bitsperpixel >= 32)
-       {
-               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, 8);
-               SDL_GL_SetAttribute (SDL_GL_DEPTH_SIZE, 24);
-               SDL_GL_SetAttribute (SDL_GL_STENCIL_SIZE, 8);
-       }
-       else
-       {
-               SDL_GL_SetAttribute (SDL_GL_RED_SIZE, 5);
-               SDL_GL_SetAttribute (SDL_GL_GREEN_SIZE, 5);
-               SDL_GL_SetAttribute (SDL_GL_BLUE_SIZE, 5);
-               SDL_GL_SetAttribute (SDL_GL_DEPTH_SIZE, 16);
-       }
+       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, 8);
+       SDL_GL_SetAttribute (SDL_GL_DEPTH_SIZE, 24);
+       SDL_GL_SetAttribute (SDL_GL_STENCIL_SIZE, 8);
        if (mode->stereobuffer)
                SDL_GL_SetAttribute (SDL_GL_STEREO, 1);
        if (mode->samples > 1)