diff options
author | Alan Hourihane <alanh@vmware.com> | 2009-02-20 14:40:08 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@vmware.com> | 2009-02-23 20:29:56 +0000 |
commit | 01c0c01a6d737d71a75cbd0de65c87c42b7ca230 (patch) | |
tree | 4bf02a33376a8a21b757ad5711659b4d1ed817bd /src/mesa/state_tracker | |
parent | 6b722272709abed5468428da5d2c8951c84867d2 (diff) |
mesa: only call update_buffer when it's available
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_cb_viewport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_viewport.c b/src/mesa/state_tracker/st_cb_viewport.c index 6adf3162c1..7b175288fc 100644 --- a/src/mesa/state_tracker/st_cb_viewport.c +++ b/src/mesa/state_tracker/st_cb_viewport.c @@ -40,7 +40,7 @@ static void st_viewport(GLcontext * ctx, GLint x, GLint y, { struct st_context *st = ctx->st; - if (st->pipe->winsys) + if (st->pipe->winsys && st->pipe->winsys->update_buffer) st->pipe->winsys->update_buffer( st->pipe->winsys, st->pipe->priv ); } |