diff options
author | Felix Kuehling <[email protected]> | 2005-01-13 16:02:05 +0000 |
---|---|---|
committer | Felix Kuehling <[email protected]> | 2005-01-13 16:02:05 +0000 |
commit | a7ab2b2e0b56e64d1d11a811e31309793f6a8caa (patch) | |
tree | cc177c430a159a113e0fef5e3e195ea67fa07bf5 /src/mesa/drivers | |
parent | b1d322a1e76f27a22b4c876ef96655728f4de692 (diff) |
Make sure DMA buffers are released in savageDestroyContext. Usually
the DRM would reclaim DMA buffers, but if one process creates and
destroys many contexts it can still run out of DMA buffers.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/savage/savage_xmesa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/savage/savage_xmesa.c b/src/mesa/drivers/dri/savage/savage_xmesa.c index b3cf3a9982e..a1c5142d4ff 100644 --- a/src/mesa/drivers/dri/savage/savage_xmesa.c +++ b/src/mesa/drivers/dri/savage/savage_xmesa.c @@ -505,7 +505,8 @@ savageDestroyContext(__DRIcontextPrivate *driContextPriv) if (imesa) { savageTextureObjectPtr next_t, t; - FLUSH_BATCH(imesa); + savageFlushVertices(imesa); + savageFlushCmdBuf(imesa, GL_TRUE); /* release DMA buffer */ /* update for multi-tex*/ { |