mesa: only call update_buffer when it's available

This commit is contained in:
Alan Hourihane
2009-02-20 14:40:08 +00:00
parent 6b72227270
commit 01c0c01a6d
+1 -1
View File
@@ -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 );
}