diff options
author | Ben Skeggs <[email protected]> | 2011-03-01 14:37:06 +1000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2011-03-01 14:44:42 +1000 |
commit | 48e191f90cbb7735cadf30c444e1fb599311c55a (patch) | |
tree | a3c8d7ac6474a878286c02450fd71af37c53e272 /src/gallium/drivers/nvc0/nvc0_context.c | |
parent | f80c03e1875fe96ff2f4c022e3cb76357828140d (diff) |
nv50-nvc0: set cur_ctx during init if none currently bound
Signed-off-by: Ben Skeggs <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_context.c')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_context.c b/src/gallium/drivers/nvc0/nvc0_context.c index f02de4d044a..ebdf5f2f9e8 100644 --- a/src/gallium/drivers/nvc0/nvc0_context.c +++ b/src/gallium/drivers/nvc0/nvc0_context.c @@ -101,6 +101,8 @@ nvc0_create(struct pipe_screen *pscreen, void *priv) nvc0->pipe.flush = nvc0_flush; + if (!screen->cur_ctx) + screen->cur_ctx = nvc0; screen->base.channel->user_private = nvc0; screen->base.channel->flush_notify = nvc0_default_flush_notify; |