Skip to content

Commit a934fe5

Browse files
committed
MODERN: Always set initial alpha in shader.
This fixes a number of potential glitches, espepcially with r_drawflat, as alpha is not always set(?).
1 parent 2a23c93 commit a934fe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/glsl/draw_world.fragment.glsl

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ void main()
139139
if ((Flags & EZQ_SURFACE_ALPHATEST) == EZQ_SURFACE_ALPHATEST && texColor.a < 0.5) {
140140
discard;
141141
}
142+
#endif
142143
// Avoid black artifacts at border between texture and transparency visible in fog
143144
texColor = vec4(texColor.rgb, 1.0);
144-
#endif
145145

146146
turbType = Flags & EZQ_SURFACE_TYPE;
147147
if (turbType != 0) {

0 commit comments

Comments
 (0)