From 97f6ef9c0d1d05efc640183d3b045296bca762a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20D=C3=B6singer?= <stefan@codeweavers.com>
Date: Fri, 27 Sep 2013 16:58:13 +0200
Subject: wined3d: Fence color_fill operations.

---
 dlls/wined3d/cs.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/wined3d/cs.c b/dlls/wined3d/cs.c
index 5603a37..fb92286 100644
--- a/dlls/wined3d/cs.c
+++ b/dlls/wined3d/cs.c
@@ -1750,6 +1750,8 @@ static UINT wined3d_cs_exec_clear_rtv(struct wined3d_cs *cs, const void *data)
 
     surface_color_fill(surface_from_resource(resource), &op->rect, &op->color);
 
+    wined3d_resource_dec_fence(op->view->resource);
+
     return sizeof(*op);
 }
 
@@ -1764,6 +1766,8 @@ void wined3d_cs_emit_clear_rtv(struct wined3d_cs *cs, struct wined3d_rendertarge
     op->rect = *rect;
     op->color = *color;
 
+    wined3d_resource_inc_fence(view->resource);
+
     cs->ops->submit(cs, sizeof(*op));
 }
 
-- 
2.1.3

