diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-01-11 11:41:47 +1000 |
---|---|---|
committer | Jakob Bornecrantz <jakob@vmware.com> | 2010-01-19 17:06:22 +0100 |
commit | 116a02be2264807dafb5fdfd4e3c913bb728c11f (patch) | |
tree | d432ab0a3d064d2cac49ecd2ec2cc52f8d8c1abf /src/mesa/state_tracker/st_cb_viewport.c | |
parent | e88294328cb71dc32941556da5bd4ed40e8b95f1 (diff) |
st/dri: update dri2 drawables when viewport is changed
Fixes gnome-shell on nouveau, as well as window resize with various
other applications.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'src/mesa/state_tracker/st_cb_viewport.c')
-rw-r--r-- | src/mesa/state_tracker/st_cb_viewport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_cb_viewport.c b/src/mesa/state_tracker/st_cb_viewport.c index 9450b3a45b..d8bd24405c 100644 --- a/src/mesa/state_tracker/st_cb_viewport.c +++ b/src/mesa/state_tracker/st_cb_viewport.c @@ -40,8 +40,8 @@ static void st_viewport(GLcontext * ctx, GLint x, GLint y, { struct st_context *st = ctx->st; - if (st->pipe->winsys && st->pipe->winsys->update_buffer) - st->pipe->winsys->update_buffer( st->pipe->winsys, + if (st->pipe->screen && st->pipe->screen->update_buffer) + st->pipe->screen->update_buffer( st->pipe->screen, st->pipe->priv ); } |