diff options
author | Axel Davy <[email protected]> | 2014-11-25 00:38:02 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-11-26 20:09:10 +0000 |
commit | 133b2087c5ba9942527bc1b218a32205fb7a10a6 (patch) | |
tree | 3c96b5bc16a1d23e286e0c022fdae4e7941d7331 /src/gallium/state_trackers/nine/volumetexture9.c | |
parent | 104b5a81933b7a2f4fa24302a1d972ad3dd0dec6 (diff) |
st/nine: Rework Basetexture9 and Resource9.
Instead of having parts of the structures initialised by the parents,
have them initialised by the children.
Cc: "10.4" <[email protected]>
Tested-by: David Heidelberg <[email protected]>
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/volumetexture9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/volumetexture9.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/state_trackers/nine/volumetexture9.c b/src/gallium/state_trackers/nine/volumetexture9.c index 65d320c6645..a35d3f7917a 100644 --- a/src/gallium/state_trackers/nine/volumetexture9.c +++ b/src/gallium/state_trackers/nine/volumetexture9.c @@ -52,9 +52,6 @@ NineVolumeTexture9_ctor( struct NineVolumeTexture9 *This, if (Usage & D3DUSAGE_AUTOGENMIPMAP) Levels = 0; - This->base.format = Format; - This->base.base.usage = Usage; - info->screen = pParams->device->screen; info->target = PIPE_TEXTURE_3D; info->format = d3d9_to_pipe_format(Format); @@ -83,8 +80,8 @@ NineVolumeTexture9_ctor( struct NineVolumeTexture9 *This, return E_OUTOFMEMORY; This->base.pstype = 3; - hr = NineBaseTexture9_ctor(&This->base, pParams, - D3DRTYPE_VOLUMETEXTURE, Pool); + hr = NineBaseTexture9_ctor(&This->base, pParams, NULL, + D3DRTYPE_VOLUMETEXTURE, Format, Pool, Usage); if (FAILED(hr)) return hr; |