draw: don't free our copy of the render stage -- just borrowing it from vbuf stage
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 11 Mar 2008 14:23:08 +0000 (14:23 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 11 Mar 2008 14:23:08 +0000 (14:23 +0000)
src/gallium/auxiliary/draw/draw_context.c

index bb64b50a1776789a0e132719d37361da0bc7d80c..fed2b6e759a8b4cb3d2c5fbc1939372e0033ca1d 100644 (file)
@@ -116,8 +116,11 @@ void draw_destroy( struct draw_context *draw )
    tgsi_exec_machine_free_data(&draw->machine);
    align_free( draw->vs.queue[0].vertex ); /* Frees all the vertices. */
 
+   /* Not so fast -- we're just borrowing this at the moment.
+    * 
    if (draw->render)
       draw->render->destroy( draw->render );
+   */
 
    FREE( draw );
 }