fix tile loading

This commit is contained in:
Konstantin Käfer
2014-03-05 16:24:10 +01:00
parent a3a1b812c8
commit 1fbaa95b02
3 changed files with 26 additions and 10 deletions

View File

@@ -40,7 +40,7 @@ void Painter::setup() {
// Blending
// We are blending the new pixels *behind* the existing pixels. That way we can
// draw front-to-back and use then stencil buffer to cull opaque pixels early.
// draw front-to-back and use the depth buffer to cull opaque pixels early.
glEnable(GL_BLEND);
glBlendFunc(GL_ONE_MINUS_DST_ALPHA, GL_ONE);
@@ -126,7 +126,7 @@ void Painter::finishClippingMask() {
void Painter::clear() {
glStencilMask(0xFF);
depthMask(true);
// glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
glClear(GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
}