]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_crosshairs.c
fix rendering issues with light crosshairs and the world crosshair
[xonotic/darkplaces.git] / r_crosshairs.c
index 113ed591c0db3147803a11f24bc848274e05d136..9e4e9c8148e9ffc151fc7e95d49eb24b70eef664 100644 (file)
@@ -90,7 +90,7 @@ void R_DrawWorldCrosshair(void)
        VectorCopy(trace.endpos, spriteorigin);
 
        // draw the sprite
-       R_DrawSprite(GL_ONE, GL_ONE, pic->tex, NULL, true, spriteorigin, r_viewright, r_viewup, spritescale, -spritescale, -spritescale, spritescale, color[0], color[1], color[2], color[3]);
+       R_DrawSprite(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, pic->tex, NULL, true, spriteorigin, r_viewright, r_viewup, spritescale, -spritescale, -spritescale, spritescale, color[0], color[1], color[2], color[3]);
 }
 
 void R_Draw2DCrosshair(void)