1
0
Fork 0
forked from fte/fteqw

Prevent 8bpp opengl. I hate you Up2nOgOoD[ROCK].

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2203 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-04-14 01:55:12 +00:00
parent 961b474e73
commit 0560842635

View file

@ -452,6 +452,11 @@ qboolean VID_SetFullDIBMode (rendererstate_t *info)
if (info->rate)
gdevmode.dmFields |= DM_DISPLAYFREQUENCY;
gdevmode.dmBitsPerPel = info->bpp;
if (info->bpp && (gdevmode.dmBitsPerPel < 15))
{
Con_Printf("Forcing at least 16bpp\n");
gdevmode.dmBitsPerPel = 16;
}
gdevmode.dmDisplayFrequency = info->rate;
gdevmode.dmPelsWidth = info->width;
gdevmode.dmPelsHeight = info->height;