Don't discard zero alpha fog block fragments.

see: https://git.do.srb2.org/Hannu_Hanhi/SRB2/-/commit/80172ee93214969cf446ceac5d66e1fb5f56b068
This commit is contained in:
alufolie91 committed 2023-08-14 03:35:25 +02:00
1 parent 7931fa92ba
commit 0e6a09be2b
1 file changed
+1 -1
+1 -1
View File
@@ -1405,7 +1405,7 @@ EXPORT void HWRAPI(SetBlend) (FBITFIELD PolyFlags)
// Sryder: Fog
// multiplies input colour by input alpha, and destination colour by input colour, then adds them
pglBlendFunc(GL_SRC_ALPHA, GL_SRC_COLOR);
pglAlphaFunc(GL_NOTEQUAL, 0.0f);
pglAlphaFunc(GL_ALWAYS, 0.0f); // Don't discard zero alpha fragments
break;
default : // must be 0, otherwise it's an error
// No blending