mirror of
https://github.com/nzp-team/quakespasm.git
synced 2025-04-24 01:31:41 +00:00
Update gl_draw.c
This commit is contained in:
parent
cc76d04b84
commit
3646b8f421
1 changed files with 1 additions and 32 deletions
|
@ -862,41 +862,10 @@ Draw_ConsoleBackground -- johnfitz -- rewritten
|
|||
*/
|
||||
void Draw_ConsoleBackground (void)
|
||||
{
|
||||
float alpha;
|
||||
|
||||
//pic = Draw_CachePic ("gfx/conback.lmp");
|
||||
//pic->width = vid.conwidth;
|
||||
//pic->height = vid.conheight;
|
||||
|
||||
#ifdef VITA
|
||||
alpha = (con_forcedup) ? 1.0 : scr_conalpha.value;
|
||||
#else
|
||||
alpha = 1.0;
|
||||
#endif
|
||||
|
||||
//GL_SetCanvas (CANVAS_CONSOLE); //in case this is called from weird places
|
||||
|
||||
if (alpha > 0.0)
|
||||
{
|
||||
if (alpha < 1.0)
|
||||
{
|
||||
glEnable (GL_BLEND);
|
||||
glColor4f (1,1,1,alpha);
|
||||
glDisable (GL_ALPHA_TEST);
|
||||
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
|
||||
}
|
||||
|
||||
Draw_FillByColor (0, 0, vid.conwidth, vid.conheight, 0, 0, 0, alpha);
|
||||
|
||||
|
||||
if (alpha < 1.0)
|
||||
{
|
||||
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
|
||||
glEnable(GL_ALPHA_TEST);
|
||||
glDisable (GL_BLEND);
|
||||
glColor4f (1,1,1,1);
|
||||
}
|
||||
}
|
||||
Draw_FillByColor (0, 0, vid.conwidth, vid.conheight, 0, 0, 0, 1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue