Skip to content

Commit

Permalink
Handle r_colorbits values better.
Browse files Browse the repository at this point in the history
  Fixes Bugzilla #4244.
  • Loading branch information
icculus committed Sep 15, 2009
1 parent e2d63b1 commit 8c04462
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/sdl/sdl_glimp.c
Expand Up @@ -265,10 +265,9 @@ static int GLimp_SetMode( int mode, qboolean fullscreen )
else
glConfig.isFullscreen = qfalse;

if (!r_colorbits->value)
colorbits = r_colorbits->value;
if ((!colorbits) || (colorbits >= 32))
colorbits = 24;
else
colorbits = r_colorbits->value;

if (!r_depthbits->value)
depthbits = 24;
Expand Down

0 comments on commit 8c04462

Please sign in to comment.