summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/draw/draw_context.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2007-12-10 12:06:59 +1100
committerBen Skeggs <skeggsb@gmail.com>2007-12-10 12:06:59 +1100
commit5c1a5b504705214fd5e90b33bb3034e75f6b5994 (patch)
treeac6e3bd4cb94979ad1fce57a3fd01249253ef3ae /src/mesa/pipe/draw/draw_context.c
parent1a3987240a547ba6e625c864f10a033858de4c65 (diff)
parentf8f9580a2a1c89af1dc0e169b62440053d9d7e81 (diff)
Merge branch 'upstream-gallium-0.1' into darktama-gallium-0.1
Conflicts: src/mesa/drivers/dri/intel_winsys/intel_winsys_pipe.c src/mesa/pipe/Makefile src/mesa/pipe/draw/draw_vertex_fetch.c src/mesa/pipe/i915simple/i915_texture.c src/mesa/pipe/softpipe/sp_texture.c src/mesa/pipe/xlib/xm_winsys.c src/mesa/state_tracker/st_cb_fbo.c
Diffstat (limited to 'src/mesa/pipe/draw/draw_context.c')
-rw-r--r--src/mesa/pipe/draw/draw_context.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mesa/pipe/draw/draw_context.c b/src/mesa/pipe/draw/draw_context.c
index e7997180b5..6792a06a4e 100644
--- a/src/mesa/pipe/draw/draw_context.c
+++ b/src/mesa/pipe/draw/draw_context.c
@@ -42,7 +42,7 @@ struct draw_context *draw_create( void )
struct draw_context *draw = CALLOC_STRUCT( draw_context );
#if defined(__i386__) || defined(__386__)
- draw->use_sse = GETENV( "GALLIUM_SSE" ) != NULL;
+ draw->use_sse = GETENV( "GALLIUM_NOSSE" ) == NULL;
#else
draw->use_sse = FALSE;
#endif
@@ -85,6 +85,7 @@ struct draw_context *draw_create( void )
draw->prim = ~0; /* != any of PIPE_PRIM_x */
draw_vertex_cache_invalidate( draw );
+ draw_set_mapped_element_buffer( draw, 0, NULL );
return draw;
}
@@ -92,6 +93,16 @@ struct draw_context *draw_create( void )
void draw_destroy( struct draw_context *draw )
{
+ draw->pipeline.wide->destroy( draw->pipeline.wide );
+ draw->pipeline.unfilled->destroy( draw->pipeline.unfilled );
+ draw->pipeline.twoside->destroy( draw->pipeline.twoside );
+ draw->pipeline.offset->destroy( draw->pipeline.offset );
+ draw->pipeline.clip->destroy( draw->pipeline.clip );
+ draw->pipeline.flatshade->destroy( draw->pipeline.flatshade );
+ draw->pipeline.cull->destroy( draw->pipeline.cull );
+ draw->pipeline.feedback->destroy( draw->pipeline.feedback );
+ draw->pipeline.validate->destroy( draw->pipeline.validate );
+ draw->pipeline.rasterize->destroy( draw->pipeline.rasterize );
FREE( draw->vcache.vertex[0] ); /* Frees all the vertices. */
FREE( draw );
}