From 051aec97c5ca0088a1d66c9814a9e0d03269df5c Mon Sep 17 00:00:00 2001 From: icculus Date: Wed, 7 Sep 2005 06:03:42 +0000 Subject: Possible fix for 16-bit displays (untested)...reset the gl red/green/blue size to 4 bits unless we have a 24-bit framebuffer. git-svn-id: svn://svn.icculus.org/quake3/trunk@85 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/unix/sdl_glimp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'code/unix') diff --git a/code/unix/sdl_glimp.c b/code/unix/sdl_glimp.c index 19c83cb..be5b693 100644 --- a/code/unix/sdl_glimp.c +++ b/code/unix/sdl_glimp.c @@ -631,6 +631,7 @@ static int GLW_SetMode( const char *drivername, int mode, qboolean fullscreen ) tstencilbits = 0; } + sdlcolorbits = 4; if (tcolorbits == 24) sdlcolorbits = 8; -- cgit v1.2.3