diff options
Diffstat (limited to 'src/gallium/state_trackers/nine/indexbuffer9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/indexbuffer9.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gallium/state_trackers/nine/indexbuffer9.c b/src/gallium/state_trackers/nine/indexbuffer9.c index d5f5492563d..e73d29b5bd3 100644 --- a/src/gallium/state_trackers/nine/indexbuffer9.c +++ b/src/gallium/state_trackers/nine/indexbuffer9.c @@ -49,9 +49,6 @@ NineIndexBuffer9_ctor( struct NineIndexBuffer9 *This, if (FAILED(hr)) return hr; - This->buffer = NULL; - This->offset = 0; - switch (pDesc->Format) { case D3DFMT_INDEX16: This->index_size = 2; break; case D3DFMT_INDEX32: This->index_size = 4; break; @@ -73,11 +70,10 @@ NineIndexBuffer9_dtor( struct NineIndexBuffer9 *This ) } struct pipe_resource * -NineIndexBuffer9_GetBuffer( struct NineIndexBuffer9 *This ) +NineIndexBuffer9_GetBuffer( struct NineIndexBuffer9 *This, unsigned *offset ) { /* The resource may change */ - This->buffer = NineBuffer9_GetResource(&This->base, &This->offset); - return This->buffer; + return NineBuffer9_GetResource(&This->base, offset); } HRESULT NINE_WINAPI |