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

Author: Marek Olšák <[email protected]>
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);
 }

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to