summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/savage/savage_xmesa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/savage/savage_xmesa.c b/src/mesa/drivers/dri/savage/savage_xmesa.c
index 721047bb893..fad490a958b 100644
--- a/src/mesa/drivers/dri/savage/savage_xmesa.c
+++ b/src/mesa/drivers/dri/savage/savage_xmesa.c
@@ -430,6 +430,8 @@ savageCreateContext( const __GLcontextModes *mesaVis,
imesa->depth_scale = (imesa->savageScreen->zpp == 2) ?
(1.0F/0x10000):(1.0F/0x1000000);
+ imesa->vertex_dma_buffer = NULL;
+
/* Uninitialized vertex format. Force setting the vertex state in
* savageRenderStart.
*/
@@ -498,6 +500,8 @@ savageDestroyContext(__DRIcontextPrivate *driContextPriv)
if (imesa) {
savageTextureObjectPtr next_t, t;
+ FLUSH_BATCH(imesa);
+
/* update for multi-tex*/
{
int i;