Missing in last commit.
authorFelix Kuehling <fxkuehl@gmx.de>
Wed, 24 Mar 2004 16:18:05 +0000 (16:18 +0000)
committerFelix Kuehling <fxkuehl@gmx.de>
Wed, 24 Mar 2004 16:18:05 +0000 (16:18 +0000)
src/mesa/drivers/dri/savage/savage_xmesa.c

index 721047b..fad490a 100644 (file)
@@ -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;