From 5ee864ab5b9cefb40971669b3c2fd0df24d5dc37 Mon Sep 17 00:00:00 2001 From: johannes hanika Date: Mon, 17 Feb 2020 16:25:18 +0100 Subject: [PATCH] vid: remove explicit bit depth gl calls this makes gzdoom start on xorg configured with 30bit/pixel deep colour modes, too. it seems these explicit calls are not required, and detection via SDL_GetWindowPixelFormat does not yet work with extended bit depths, so detection + setting size to 8 or 10 depending on the result is unreliable too (as of SDL 2.0.1). --- src/posix/sdl/sdlglvideo.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/posix/sdl/sdlglvideo.cpp b/src/posix/sdl/sdlglvideo.cpp index 0d4c7ddce..e8c0969da 100644 --- a/src/posix/sdl/sdlglvideo.cpp +++ b/src/posix/sdl/sdlglvideo.cpp @@ -190,10 +190,6 @@ namespace Priv void SetupPixelFormat(int multisample, const int *glver) { - 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); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);