remove isIntelVideo special handling, simply set gl_clear instead

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@830 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
svdijk 2013-03-02 12:31:09 +00:00
parent 2f47c57897
commit d494526318
4 changed files with 7 additions and 3 deletions

View file

@ -366,7 +366,8 @@ void R_Clear (void)
unsigned int clearbits;
clearbits = GL_DEPTH_BUFFER_BIT;
if (gl_clear.value || isIntelVideo) clearbits |= GL_COLOR_BUFFER_BIT; //intel video workarounds from Baker
if (gl_clear.value)
clearbits |= GL_COLOR_BUFFER_BIT;
glClear (clearbits);
}

View file

@ -176,6 +176,9 @@ void R_Init (void)
Sky_Init (); //johnfitz
Fog_Init (); //johnfitz
if (isIntelVideo) //intel video workarounds from Baker
Cvar_SetQuick (&gl_clear, "1");
}
/*

View file

@ -950,7 +950,7 @@ SCR_TileClear -- johnfitz -- modified to use glwidth/glheight instead of vid.wid
*/
void SCR_TileClear (void)
{
if (scr_tileclear_updates >= vid.numpages && !gl_clear.value && !isIntelVideo) //intel video workarounds from Baker
if (scr_tileclear_updates >= vid.numpages && !gl_clear.value)
return;
scr_tileclear_updates++;

View file

@ -930,7 +930,7 @@ void Sbar_Draw (void)
if (cl.intermission)
return; //johnfitz -- never draw sbar during intermission
if (sb_updates >= vid.numpages && !gl_clear.value && scr_sbaralpha.value >= 1 && !isIntelVideo) //johnfitz -- gl_clear, scr_sbaralpha, intel workarounds from baker
if (sb_updates >= vid.numpages && !gl_clear.value && scr_sbaralpha.value >= 1) //johnfitz -- gl_clear, scr_sbaralpha
return;
sb_updates++;