summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-09-15 09:07:32 -0600
committerBrian Paul <[email protected]>2008-09-15 09:07:32 -0600
commitd36f4ef16b338f42342cac5a7f2ec55e17fc0893 (patch)
treef0482f58a35e9e337bfcd8cd3330339c95cfdd25 /src/mesa/main
parentbd953e872f22690bd232a758383883100d9347d0 (diff)
mesa: remove some assertions that are invalid during context tear-down
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/bufferobj.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 1b58f5e96af..918e87246f9 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -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);
}