set correct strata

This commit is contained in:
Konstantin Käfer
2014-03-24 14:45:56 +01:00
parent c00ec64205
commit f9759d72a6

View File

@@ -583,12 +583,14 @@ void Painter::renderText(TextBucket& bucket, const std::string& layer_name, cons
if (properties.halo[3] > 0.0f) {
textShader->setColor(properties.halo);
textShader->setBuffer(properties.haloRadius);
glDepthRange(strata, 1.0f);
bucket.drawGlyphs(*textShader);
}
// Then, we draw the text over the halo
textShader->setColor(properties.color);
textShader->setBuffer((256.0f - 64.0f) / 256.0f);
glDepthRange(strata + strata_epsilon, 1.0f);
bucket.drawGlyphs(*textShader);
}