diff options
Diffstat (limited to 'src/gallium/state_trackers/nine/device9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/device9.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index 1a345b93d3c..61a4a0c2b9f 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -1994,7 +1994,7 @@ NineDevice9_Clear( struct NineDevice9 *This, for (i = 0; i < This->caps.NumSimultaneousRTs; ++i) { rt = This->state.rt[i]; if (!rt || rt->desc.Format == D3DFMT_NULL || - !(Flags & D3DCLEAR_TARGET)) + !(bufs & PIPE_CLEAR_COLOR)) continue; /* save space, compiler should hoist this */ cbuf = NineSurface9_GetSurface(rt, sRGB); for (r = 0; r < Count; ++r) { @@ -2019,7 +2019,7 @@ NineDevice9_Clear( struct NineDevice9 *This, x1, y1, x2 - x1, y2 - y1); } } - if (!(Flags & NINED3DCLEAR_DEPTHSTENCIL)) + if (!(bufs & PIPE_CLEAR_DEPTHSTENCIL)) return D3D_OK; bufs &= PIPE_CLEAR_DEPTHSTENCIL; |