summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/cubetexture9.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/cubetexture9.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/cubetexture9.c')
-rw-r--r--src/gallium/state_trackers/nine/cubetexture9.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/cubetexture9.c b/src/gallium/state_trackers/nine/cubetexture9.c
index 98fe887072c..edea1f28a8d 100644
--- a/src/gallium/state_trackers/nine/cubetexture9.c
+++ b/src/gallium/state_trackers/nine/cubetexture9.c
@@ -276,6 +276,10 @@ NineCubeTexture9_AddDirtyRect( struct NineCubeTexture9 *This,
rect_to_pipe_box_clamp(&box, pDirtyRect);
u_box_union_2d(&This->dirty_rect[FaceType], &This->dirty_rect[FaceType],
&box);
+ (void) u_box_clip_2d(&This->dirty_rect[FaceType],
+ &This->dirty_rect[FaceType],
+ This->base.base.info.width0,
+ This->base.base.info.height0);
}
return D3D_OK;
}