diff --git a/src/r_data.c b/src/r_data.c
index 982966ea24f557ed7bd701acaf14bca8f90dedd8..f2ad42c6ac18690152fb0b06bae64b01ac2936df 100644
--- a/src/r_data.c
+++ b/src/r_data.c
@@ -262,7 +262,8 @@ UINT32 ASTBlendPixel(RGBA_t background, RGBA_t foreground, int style, UINT8 alph
 		// if there's no pixel in here
 		if (!background.rgba)
 			output.s.alpha = foreground.s.alpha;
-		output.s.alpha = 0xFF;
+		else
+			output.s.alpha = 0xFF;
 		return output.rgba;
 	}
 #define clamp(c) max(min(c, 0xFF), 0x00);