st/dri: update dri2 drawables when viewport is changed
[mesa.git] / src / mesa / state_tracker / st_cb_viewport.c
index 75b0a219ce3a557ce8f4df086e3ae38c2292cdb5..d8bd24405ceac022ecf083f5dca7f774aeb6e5bd 100644 (file)
 
 #include "main/glheader.h"
 #include "st_context.h"
-#include "st_public.h"
 #include "st_cb_viewport.h"
 
 #include "pipe/p_context.h"
-#include "pipe/p_inlines.h"
 #include "pipe/p_state.h"
 #include "pipe/p_defines.h"
 #include "pipe/internal/p_winsys_screen.h"
@@ -42,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 );
 }