diff options
author | Brian Paul <[email protected]> | 2008-09-15 09:07:32 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-09-15 09:18:59 -0600 |
commit | 987c4b35b8f552a88e1b6459adaabbf544d6bbf6 (patch) | |
tree | 20a5c690daa278be6629b3c91d31a9146b3cf139 /src/mesa | |
parent | cd23c5c5998f3c48153a22bed53986b4293f797a (diff) |
mesa: remove some assertions that are invalid during context tear-down
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/bufferobj.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index f1e0932b077..ecdb4d219c8 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); } |