mesa: finish-up indexed color mask code in _mesa_PopAttrib()
authorBrian Paul <brianp@vmware.com>
Wed, 30 Dec 2009 05:58:44 +0000 (22:58 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 30 Dec 2009 05:58:44 +0000 (22:58 -0700)
src/mesa/main/attrib.c

index 30e97a6e386bca27bccf345b5670a6b3aa8863e0..886939f0ee03b6090c3b449f4ae64c63c96034e5 100644 (file)
@@ -919,7 +919,7 @@ _mesa_PopAttrib(void)
                                 color->ClearColor[2],
                                 color->ClearColor[3]);
                _mesa_IndexMask(color->IndexMask);
-               if (1/*ctx->Extensions.EXT_draw_buffers2*/) {
+               if (!ctx->Extensions.EXT_draw_buffers2) {
                   _mesa_ColorMask((GLboolean) (color->ColorMask[0][0] != 0),
                                   (GLboolean) (color->ColorMask[0][1] != 0),
                                   (GLboolean) (color->ColorMask[0][2] != 0),