mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
remove isIntelVideo special handling, simply set gl_clear instead
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@830 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
87c24f75ff
commit
22f426441f
4 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -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++;
|
||||
|
||||
|
|
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue