Mesa (master): mesa: fix assertion failure in delete_wrapper

Marek Olšák mareko at kemper.freedesktop.org
Mon Jul 11 13:32:51 UTC 2011


Module: Mesa
Branch: master
Commit: 6c53d75e7d41e7c586495e0486d46fbffaa77a5f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6c53d75e7d41e7c586495e0486d46fbffaa77a5f

Author: Marek Olšák <maraeo at gmail.com>
Date:   Mon Jul 11 15:26:51 2011 +0200

mesa: fix assertion failure in delete_wrapper

---

 src/mesa/main/depthstencil.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/depthstencil.c b/src/mesa/main/depthstencil.c
index 4d06000..40d6c96 100644
--- a/src/mesa/main/depthstencil.c
+++ b/src/mesa/main/depthstencil.c
@@ -63,7 +63,8 @@ static void
 delete_wrapper(struct gl_renderbuffer *rb)
 {
    ASSERT(rb->Format == MESA_FORMAT_S8 ||
-          rb->Format == MESA_FORMAT_X8_Z24);
+          rb->Format == MESA_FORMAT_X8_Z24 ||
+          rb->Format == MESA_FORMAT_Z32_FLOAT);
    _mesa_reference_renderbuffer(&rb->Wrapped, NULL);
    free(rb);
 }




More information about the mesa-commit mailing list