mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 14:32:55 +00:00
Fix crosshair drawing not clearing color
The renderer color is set to health color when drawing crosshair. After drawing the crosshair, the renderer color was not cleared and could affect other things. With cg_draw3dicons 0 and cg_drawCrosshairNames 0 it affected the attacker icon.
This commit is contained in:
parent
5fb49acda8
commit
1897afbd3a
1 changed files with 2 additions and 0 deletions
|
@ -1899,6 +1899,8 @@ static void CG_DrawCrosshair(void)
|
||||||
trap_R_DrawStretchPic( x + cg.refdef.x + 0.5 * (cg.refdef.width - w),
|
trap_R_DrawStretchPic( x + cg.refdef.x + 0.5 * (cg.refdef.width - w),
|
||||||
y + cg.refdef.y + 0.5 * (cg.refdef.height - h),
|
y + cg.refdef.y + 0.5 * (cg.refdef.height - h),
|
||||||
w, h, 0, 0, 1, 1, hShader );
|
w, h, 0, 0, 1, 1, hShader );
|
||||||
|
|
||||||
|
trap_R_SetColor( NULL );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue