st/dri: update dri2 drawables when viewport is changed
[mesa.git] / src / mesa / state_tracker / st_cb_viewport.c
index 9450b3a45bc8c3b1c5c7c9a6f06954db60907a0c..d8bd24405ceac022ecf083f5dca7f774aeb6e5bd 100644 (file)
@@ -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 );
 }