diff options
Diffstat (limited to 'camera.c')
-rw-r--r-- | camera.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -86,17 +86,15 @@ shootcamera(Camera *c, Shadertab *s) job = emalloc(sizeof *job); memset(job, 0, sizeof *job); - job->fb = c->vp->fbctl->fb[c->vp->fbctl->idx^1]; /* address the back buffer */ + job->v = c->vp; job->scene = c->s; job->shaders = s; job->donec = chancreate(sizeof(void*), 0); - c->vp->fbctl->reset(c->vp->fbctl); t0 = nanosec(); sendp(c->rctl->c, job); recvp(job->donec); t1 = nanosec(); - c->vp->fbctl->swap(c->vp->fbctl); chanfree(job->donec); free(job); |