fix broken assertions so dri drivers compile with -DDEBUG (replace GL_STENCIL_INDEX8...
authorRoland Scheidegger <rscheidegger@gmx.ch>
Mon, 30 Jan 2006 23:49:31 +0000 (23:49 +0000)
committerRoland Scheidegger <rscheidegger@gmx.ch>
Mon, 30 Jan 2006 23:49:31 +0000 (23:49 +0000)
src/mesa/drivers/dri/common/drirenderbuffer.c
src/mesa/drivers/dri/sis/sis_dd.c
src/mesa/drivers/dri/unichrome/via_context.c

index cb26bb48970b751b0494d6817f6b302c24dfc217..29ba1ea8a3032bf932745d3ba8a4cdbbe8eaaa99 100644 (file)
@@ -92,9 +92,15 @@ driNewRenderbuffer(GLenum format, GLvoid *addr,
          /* we always Get/Put 32-bit Z values */
          drb->Base.DataType = GL_UNSIGNED_INT;
       }
+      else if (format == GL_DEPTH_COMPONENT32) {
+         /* Depth */
+         drb->Base._BaseFormat = GL_DEPTH_COMPONENT;
+         /* we always Get/Put 32-bit Z values */
+         drb->Base.DataType = GL_UNSIGNED_INT;
+      }
       else {
          /* Stencil */
-         ASSERT(format == GL_STENCIL_INDEX8);
+         ASSERT(format == GL_STENCIL_INDEX8_EXT);
          drb->Base._BaseFormat = GL_STENCIL_INDEX;
          drb->Base.DataType = GL_UNSIGNED_BYTE;
       }
index 4e73f562b028c6e7904175672bacf239dd70cb18..39c00a18af629abbe01c3f778f16a64286fb94ff 100644 (file)
@@ -160,7 +160,7 @@ sisInitRenderbuffer(struct gl_renderbuffer *rb, GLenum format)
    }
    else {
       /* Stencil */
-      ASSERT(format == GL_STENCIL_INDEX8);
+      ASSERT(format == GL_STENCIL_INDEX8_EXT);
       rb->_BaseFormat = GL_STENCIL_INDEX;
       rb->DataType = GL_UNSIGNED_BYTE;
    }
index 62498fb874564ebf7a49fade0ae3bc60b2e062b8..183f3d3479f3cef6f21f3ffc479e08b29e11c798 100644 (file)
@@ -177,7 +177,7 @@ viaInitRenderbuffer(struct gl_renderbuffer *rb, GLenum format)
    }
    else {
       /* Stencil */
-      ASSERT(format == GL_STENCIL_INDEX8);
+      ASSERT(format == GL_STENCIL_INDEX8_EXT);
       rb->_BaseFormat = GL_STENCIL_INDEX;
       rb->DataType = GL_UNSIGNED_BYTE;
    }