Mesa (master): mesa: only call update_buffer when it's available

Alan Hourihane alanh at kemper.freedesktop.org
Mon Feb 23 20:30:03 UTC 2009


Module: Mesa
Branch: master
Commit: 01c0c01a6d737d71a75cbd0de65c87c42b7ca230
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=01c0c01a6d737d71a75cbd0de65c87c42b7ca230

Author: Alan Hourihane <alanh at vmware.com>
Date:   Fri Feb 20 14:40:08 2009 +0000

mesa: only call update_buffer when it's available

---

 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 6adf316..7b17528 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 );
 }




More information about the mesa-commit mailing list