Skip to content

Commit

Permalink
fix #5242: limit AlphaToCoverage to FSAA>=6x
Browse files Browse the repository at this point in the history
else there are too less coverage samples and the pattern becomes a 1bit mask
  • Loading branch information
jk3064 committed May 17, 2016
1 parent cf1f816 commit b08b2e9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rts/Rendering/UnitDrawer.cpp
Expand Up @@ -467,10 +467,9 @@ void CUnitDrawer::DrawUnitIcons()
glDisable(GL_BLEND);
glEnable(GL_ALPHA_TEST);
glAlphaFunc(GL_GREATER, 0.5f);
// FIXME: remove dithering
// if ((globalRendering->FSAA > 0) && GLEW_ARB_multisample) {
// glEnable(GL_SAMPLE_ALPHA_TO_COVERAGE_ARB);
// }
if ((globalRendering->FSAA >= 6) && GLEW_ARB_multisample) {
glEnable(GL_SAMPLE_ALPHA_TO_COVERAGE_ARB);
}

for (CUnit* u: iconUnits) {
DrawIcon(u, !gu->spectatingFullView &&
Expand Down

0 comments on commit b08b2e9

Please sign in to comment.