summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri/sw
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-12-03 16:24:59 +0100
committerMarek Olšák <[email protected]>2012-12-07 14:19:29 +0100
commit919f788b92362676fa368d9950532f82f762cdfb (patch)
tree066584a0498ca4f9bc7d5430343f675a1951548f /src/gallium/state_trackers/dri/sw
parent888714feb6fe9ff22221f4f8a6ed6abd904a2761 (diff)
gallium: pass the current context to the flush_front state tracker function
I will later use the context to resolve an MSAA front buffer. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/dri/sw')
-rw-r--r--src/gallium/state_trackers/dri/sw/drisw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/dri/sw/drisw.c b/src/gallium/state_trackers/dri/sw/drisw.c
index 533f908bce2..7a5f79716c0 100644
--- a/src/gallium/state_trackers/dri/sw/drisw.c
+++ b/src/gallium/state_trackers/dri/sw/drisw.c
@@ -158,10 +158,10 @@ drisw_swap_buffers(__DRIdrawable *dPriv)
}
static void
-drisw_flush_frontbuffer(struct dri_drawable *drawable,
+drisw_flush_frontbuffer(struct dri_context *ctx,
+ struct dri_drawable *drawable,
enum st_attachment_type statt)
{
- struct dri_context *ctx = dri_get_current(drawable->sPriv);
struct pipe_resource *ptex;
if (!ctx)