Handle r_colorbits values better.

Fixes Bugzilla #4244.
This commit is contained in:
Ryan C. Gordon 2009-09-15 02:51:09 +00:00
parent e2d63b1fea
commit 8c04462b34

View file

@ -265,10 +265,9 @@ static int GLimp_SetMode( int mode, qboolean fullscreen )
else
glConfig.isFullscreen = qfalse;
if (!r_colorbits->value)
colorbits = 24;
else
colorbits = r_colorbits->value;
if ((!colorbits) || (colorbits >= 32))
colorbits = 24;
if (!r_depthbits->value)
depthbits = 24;