diff options
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_context.c')
-rw-r--r-- | src/gallium/drivers/nv30/nv30_context.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv30/nv30_context.c b/src/gallium/drivers/nv30/nv30_context.c index 42e844f141e..31519de7a24 100644 --- a/src/gallium/drivers/nv30/nv30_context.c +++ b/src/gallium/drivers/nv30/nv30_context.c @@ -84,6 +84,9 @@ nv30_context_destroy(struct pipe_context *pipe) { struct nv30_context *nv30 = nv30_context(pipe); + if (nv30->blitter) + util_blitter_destroy(nv30->blitter); + if (nv30->draw) draw_destroy(nv30->draw); @@ -171,5 +174,11 @@ nv30_context_create(struct pipe_screen *pscreen, void *priv) nv40_verttex_init(pipe); nv30_draw_init(pipe); + nv30->blitter = util_blitter_create(pipe); + if (!nv30->blitter) { + nv30_context_destroy(pipe); + return NULL; + } + return pipe; } |