Merge branch 'draw-instanced'
[mesa.git] / src / gallium / drivers / softpipe / sp_screen.c
index 9b54babdfb776b2e92b9f6451229d624c3d5a6e5..e19f2e6fc7d0ef41dfd27cd2b20632e8f39d0168 100644 (file)
@@ -268,12 +268,13 @@ softpipe_destroy_screen( struct pipe_screen *screen )
  */
 static void
 softpipe_flush_frontbuffer(struct pipe_screen *_screen,
-                           struct pipe_surface *surface,
+                           struct pipe_resource *resource,
+                           unsigned level, unsigned layer,
                            void *context_private)
 {
    struct softpipe_screen *screen = softpipe_screen(_screen);
    struct sw_winsys *winsys = screen->winsys;
-   struct softpipe_resource *texture = softpipe_resource(surface->texture);
+   struct softpipe_resource *texture = softpipe_resource(resource);
 
    assert(texture->dt);
    if (texture->dt)