aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-07 06:03:42 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-07 06:03:42 +0000
commit051aec97c5ca0088a1d66c9814a9e0d03269df5c (patch)
tree0cb69d92d8ab72cafa6b6755dda3abebc8aba04f /code/unix
parent8c2d978f77bb3c7209f39660c6834691273d6dab (diff)
downloadioquake3-aero-051aec97c5ca0088a1d66c9814a9e0d03269df5c.tar.gz
ioquake3-aero-051aec97c5ca0088a1d66c9814a9e0d03269df5c.zip
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
Diffstat (limited to 'code/unix')
-rw-r--r--code/unix/sdl_glimp.c1
1 files changed, 1 insertions, 0 deletions
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;