use unified RenderPass type

This commit is contained in:
Konstantin Käfer
2014-08-12 15:24:02 +02:00
parent 64d5cea94f
commit 18b1469e9e
8 changed files with 21 additions and 21 deletions

View File

@@ -144,16 +144,16 @@ void Painter::clear() {
}
void Painter::setOpaque() {
if (pass != Opaque) {
pass = Opaque;
if (pass != RenderPass::Opaque) {
pass = RenderPass::Opaque;
glDisable(GL_BLEND);
depthMask(true);
}
}
void Painter::setTranslucent() {
if (pass != Translucent) {
pass = Translucent;
if (pass != RenderPass::Translucent) {
pass = RenderPass::Translucent;
glEnable(GL_BLEND);
depthMask(false);
}