From 663138a9510be5d2f3ee2bda41e3a8c86ab688b5 Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Mon, 30 Jan 2006 23:49:31 +0000 Subject: fix broken assertions so dri drivers compile with -DDEBUG (replace GL_STENCIL_INDEX8 with GL_STENCIL_INDEX8_EXT). Fix potential problem with drivers which use 32bit z buffers. --- src/mesa/drivers/dri/unichrome/via_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/unichrome') diff --git a/src/mesa/drivers/dri/unichrome/via_context.c b/src/mesa/drivers/dri/unichrome/via_context.c index 62498fb874..183f3d3479 100644 --- a/src/mesa/drivers/dri/unichrome/via_context.c +++ b/src/mesa/drivers/dri/unichrome/via_context.c @@ -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; } -- cgit v1.2.3