Merge branch 'ogl-fog-block-fix' into 'next'

Don't discard zero alpha fog block fragments. Fixes #198.

Closes #198

See merge request STJr/SRB2!1084
This commit is contained in:
James R 2020-07-24 04:45:50 -04:00
commit b45bd6990e

View file

@ -1535,7 +1535,7 @@ EXPORT void HWRAPI(SetBlend) (FBITFIELD PolyFlags)
// Sryder: Fog // Sryder: Fog
// multiplies input colour by input alpha, and destination colour by input colour, then adds them // multiplies input colour by input alpha, and destination colour by input colour, then adds them
pglBlendFunc(GL_SRC_ALPHA, GL_SRC_COLOR); pglBlendFunc(GL_SRC_ALPHA, GL_SRC_COLOR);
pglAlphaFunc(GL_NOTEQUAL, 0.0f); pglAlphaFunc(GL_ALWAYS, 0.0f); // Don't discard zero alpha fragments
break; break;
default : // must be 0, otherwise it's an error default : // must be 0, otherwise it's an error
// No blending // No blending