Sbar_DrawPicAlpha: change glColor3f call to glColor4f with explicit alpha of 1 to work around intel 855 bug, which also affected Fitzquake 0.85.

With "r_oldwater 0" and "scr_sbaralpha 0", warp textures wouldn't be rendered and instead you would see a copy of the screen tiled where water surfaces should be.
Thanks to graham for reporting.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1256 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
ewasylishen 2015-10-06 06:18:30 +00:00
parent cf6d493154
commit b7baae191f

View file

@ -285,7 +285,7 @@ void Sbar_DrawPicAlpha (int x, int y, qpic_t *pic, float alpha)
glEnable (GL_BLEND);
glColor4f(1,1,1,alpha);
Draw_Pic (x, y + 24, pic);
glColor3f(1,1,1);
glColor4f(1,1,1,1); // ericw -- changed from glColor3f to work around intel 855 bug with "r_oldwater 0" and "scr_sbaralpha 0"
glDisable (GL_BLEND);
glEnable (GL_ALPHA_TEST);
}