diff options
Diffstat (limited to 'src/gallium/state_trackers/nine/device9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/device9.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index 05fa71cec7c..c106ab12c8f 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -498,12 +498,10 @@ NineDevice9_dtor( struct NineDevice9 *This ) DBG("This=%p\n", This); - if (This->context.pipe && This->context.cso) - nine_pipe_context_clear(This); nine_ff_fini(This); nine_state_destroy_sw(This); nine_state_clear(&This->state, TRUE); - nine_context_clear(&This->context); + nine_context_clear(This); if (This->vertex_uploader) u_upload_destroy(This->vertex_uploader); @@ -871,9 +869,8 @@ NineDevice9_Reset( struct NineDevice9 *This, break; } - nine_pipe_context_clear(This); nine_state_clear(&This->state, TRUE); - nine_context_clear(&This->context); + nine_context_clear(This); NineDevice9_SetDefaultState(This, TRUE); NineDevice9_SetRenderTarget( |