Henri Verbeet : wined3d: Get rid of clearing the texture bindings in state_init_default().
Alexandre Julliard
julliard at winehq.org
Tue Sep 24 15:16:48 CDT 2013
Module: wine
Branch: master
Commit: 9516ce33d8e098dc446344bbef1aa1d7871a04d5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9516ce33d8e098dc446344bbef1aa1d7871a04d5
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Tue Sep 24 09:48:46 2013 +0200
wined3d: Get rid of clearing the texture bindings in state_init_default().
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 files changed, 0 insertions(+), 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,
More information about the wine-cvs
mailing list