From ff738de279c2a19b79969e6d3e0de7ade7e3c983 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Wed, 23 Nov 2016 01:01:28 +0100 Subject: [PATCH] Bgra support --- src/posix/sdl/sdlglvideo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/posix/sdl/sdlglvideo.cpp b/src/posix/sdl/sdlglvideo.cpp index a07f7c0f5..92773801f 100644 --- a/src/posix/sdl/sdlglvideo.cpp +++ b/src/posix/sdl/sdlglvideo.cpp @@ -52,7 +52,7 @@ EXTERN_CVAR (Int, vid_renderer) EXTERN_CVAR (Int, vid_maxfps) EXTERN_CVAR (Bool, cl_capfps) -DFrameBuffer *CreateGLSWFrameBuffer(int width, int height, bool fullscreen); +DFrameBuffer *CreateGLSWFrameBuffer(int width, int height, bool bgra, bool fullscreen); // PUBLIC DATA DEFINITIONS ------------------------------------------------- @@ -200,7 +200,7 @@ DFrameBuffer *SDLGLVideo::CreateFrameBuffer (int width, int height, bool bgra, b if (vid_renderer == 1) fb = new OpenGLFrameBuffer (0, width, height, 32, 60, fullscreen); else - fb = (SDLGLFB*)CreateGLSWFrameBuffer (width, height, fullscreen); + fb = (SDLGLFB*)CreateGLSWFrameBuffer (width, height, bgra, fullscreen); retry = 0;