diff options
author | Axel Davy <[email protected]> | 2016-10-17 21:18:42 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-12-20 23:44:21 +0100 |
commit | 43288cf376a280f1f7757e2c47f6ddcaad0c384f (patch) | |
tree | a90ae9a74e3ad851acb4da1f47f3d0b471f0e112 /src/gallium/state_trackers/nine/stateblock9.c | |
parent | 63633e2a08b227025f1e479fe26244e6bf37d7e7 (diff) |
st/nine: Back vdecl to nine_context
Part of the refactor to move all gallium calls to
nine_state.c, and have all internal states required
for those calls in nine_context.
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/stateblock9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/stateblock9.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/nine/stateblock9.c b/src/gallium/state_trackers/nine/stateblock9.c index 4af370ec94d..1ed251af623 100644 --- a/src/gallium/state_trackers/nine/stateblock9.c +++ b/src/gallium/state_trackers/nine/stateblock9.c @@ -567,10 +567,7 @@ NineStateBlock9_Apply( struct NineStateBlock9 *This ) nine_context_apply_stateblock(device, src); if ((src->changed.group & NINE_STATE_VDECL) && src->vdecl) - NineDevice9_SetVertexDeclaration(This->base.device, (IDirect3DVertexDeclaration9 *)src->vdecl); - - /* Recomputing it is needed if we changed vs but not vdecl */ - dst->programmable_vs = dst->vs && !(dst->vdecl && dst->vdecl->position_t); + nine_bind(&dst->vdecl, src->vdecl); /* Textures */ if (src->changed.texture) { |