diff options
author | Axel Davy <axel.davy@ens.fr> | 2016-01-30 11:39:21 +0100 |
---|---|---|
committer | Axel Davy <axel.davy@ens.fr> | 2016-02-04 22:12:17 +0100 |
commit | b63c144d1e12c0052fe5e697d9fa031eb1439bbe (patch) | |
tree | eb4032d42acfc38b10a3882dc474e33cda0b1201 /src/gallium/state_trackers/nine/device9.c | |
parent | b5876e47623a20c9a123d33927f97bada7c95f3c (diff) |
st/nine: Use pipe_resource_reference for vtxbuf
This seems cleaner to actually reference the resources for vtxbuf,
rather than relying on the fact the bound d3d streams do.
Signed-off-by: Axel Davy <axel.davy@ens.fr>
Diffstat (limited to 'src/gallium/state_trackers/nine/device9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/device9.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index 055433ac85..4bc71bde5f 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -3511,7 +3511,8 @@ NineDevice9_SetStreamSource( struct NineDevice9 *This, state->vtxbuf[i].stride = Stride; state->vtxbuf[i].buffer_offset = OffsetInBytes; } - state->vtxbuf[i].buffer = pStreamData ? pVBuf9->base.resource : NULL; + pipe_resource_reference(&state->vtxbuf[i].buffer, + pStreamData ? pVBuf9->base.resource : NULL); return D3D_OK; } |