summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/texture9.c
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2015-02-19 17:44:43 +0100
committerAxel Davy <[email protected]>2015-04-29 08:28:11 +0200
commit090ebc7638e64592716ac4ecd4c29609b2f35421 (patch)
tree37f29d9b9af7233b4f05d7de35c2300a64cfd24d /src/gallium/state_trackers/nine/texture9.c
parent520e36f89cb9048258d9c1ca42de68564ad876a9 (diff)
st/nine: Bound the dirty regions to resource size
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/texture9.c')
-rw-r--r--src/gallium/state_trackers/nine/texture9.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/texture9.c b/src/gallium/state_trackers/nine/texture9.c
index 5b5fd551a80..c1d1343b273 100644
--- a/src/gallium/state_trackers/nine/texture9.c
+++ b/src/gallium/state_trackers/nine/texture9.c
@@ -310,6 +310,9 @@ NineTexture9_AddDirtyRect( struct NineTexture9 *This,
struct pipe_box box;
rect_to_pipe_box_clamp(&box, pDirtyRect);
u_box_union_2d(&This->dirty_rect, &This->dirty_rect, &box);
+ (void) u_box_clip_2d(&This->dirty_rect, &This->dirty_rect,
+ This->base.base.info.width0,
+ This->base.base.info.height0);
}
return D3D_OK;
}