This one checks for fullscreen of color white before it removes it if its not fullscreen the white color it detects then it dosen't remove it, this does so you won't have the problem of not being able to see your self on scoreboard amongst other things.
----at globals/at the top---------
bool bFlash;
static GLint vp[4];
----in glBegin----------
if(mode==GL_QUADS)
{
glGetIntegerv(GL_VIEWPORT,vp);
bFlash = false;
GLfloat curcol2[4];
glGetFloatv(GL_CURRENT_COLOR, curcol2);
if((curcol2[0]==1.0f)&&(curcol2[1]==1.0f)&&(curcol2[2]==1.0f))
{
bFlash=true;
}
}
------glVertex2f-----
if(bFlash)
{
if(y==vp[3])
{
GLfloat fcurcol[4];
glGetFloatv(GL_CURRENT_COLOR, fcurcol);
glColor4f(fcurcol[0],fcurcol[1],fcurcol[2],0.01f);
}
}