[PATCH 3/5] wined3d: Get rid of clearing the texture bindings in state_init_default().
Henri Verbeet
hverbeet at codeweavers.com
Tue Sep 24 02:48:46 CDT 2013
This is arbitrary, we don't do it for any of the other resource bindings
either, and the wined3d_state structure is assumed to be zero-initialized.
---
dlls/wined3d/stateblock.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c
index c593a63..04bedf1 100644
--- a/dlls/wined3d/stateblock.c
+++ b/dlls/wined3d/stateblock.c
@@ -1378,11 +1378,6 @@ void state_init_default(struct wined3d_state *state, struct wined3d_device *devi
/* TODO: Vertex offset in the presampled displacement map. */
state->sampler_states[i][WINED3D_SAMP_DMAP_OFFSET] = 0;
}
-
- for (i = 0; i < gl_info->limits.textures; ++i)
- {
- state->textures[i] = NULL;
- }
}
static HRESULT stateblock_init(struct wined3d_stateblock *stateblock,
--
1.7.10.4
More information about the wine-patches
mailing list