Warn only when being enabled.
authorAapo Tahkola <aet@rasterburn.org>
Sat, 17 Dec 2005 12:20:51 +0000 (12:20 +0000)
committerAapo Tahkola <aet@rasterburn.org>
Sat, 17 Dec 2005 12:20:51 +0000 (12:20 +0000)
src/mesa/drivers/dri/r300/r300_state.c

index 6212d22c332462387169e61837116d35d568e35d..ae22510091c9b7b3877fc18c77721bfc4c8526e2 100644 (file)
@@ -456,10 +456,10 @@ static void r300Enable(GLcontext* ctx, GLenum cap, GLboolean state)
                break;
 
        case GL_STENCIL_TEST:
-               WARN_ONCE("TODO - double side stencil !\n");
                if (r300->state.stencil.hw_stencil) {
                        R300_STATECHANGE(r300, zs);
                        if (state) {
+                               WARN_ONCE("TODO - double side stencil !\n");
                                r300->hw.zs.cmd[R300_ZS_CNTL_0] |=
                                    R300_RB3D_STENCIL_ENABLE;
                        } else {