mesa: remove some assertions that are invalid during context tear-down
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 15 Sep 2008 15:07:32 +0000 (09:07 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 15 Sep 2008 15:18:59 +0000 (09:18 -0600)
src/mesa/main/bufferobj.c

index f1e0932b0777cc8e8d5c1b325c3b041e28b98775..ecdb4d219c8e9ddce89826e28bfc6c5bbd85bd0f 100644 (file)
@@ -205,11 +205,14 @@ _mesa_reference_buffer_object(GLcontext *ctx,
       if (deleteFlag) {
 
          /* some sanity checking: don't delete a buffer still in use */
+#if 0
+         /* unfortunately, these tests are invalid during context tear-down */
         ASSERT(ctx->Array.ArrayBufferObj != bufObj);
         ASSERT(ctx->Array.ElementArrayBufferObj != bufObj);
         ASSERT(ctx->Array.ArrayObj->Vertex.BufferObj != bufObj);
-        ASSERT(ctx->Driver.DeleteBuffer);
+#endif
 
+        ASSERT(ctx->Driver.DeleteBuffer);
          ctx->Driver.DeleteBuffer(ctx, oldObj);
       }