OpenGL Renderer: Fix a bug where Fog rendering would fail when used with MSAA. Fixes #246. (OpenGL 3.2 only. Regression from commit 21a3fae.)

This commit is contained in:
rogerman 2019-01-15 21:47:50 -08:00
parent 6ed5cf8420
commit 7990e6c3f3
1 changed files with 1 additions and 0 deletions

View File

@ -2446,6 +2446,7 @@ Render3DError OpenGLRenderer_3_2::ClearUsingValues(const FragmentColor &clearCol
glClearBufferfv(GL_COLOR, 2, oglFogAttr); // texGFogAttrID
}
glDrawBuffers(3, GeometryDrawBuffersList[this->_geometryProgramFlags.DrawBuffersMode]);
this->_needsZeroDstAlphaPass = (clearColor6665.a == 0);
return OGLERROR_NOERR;