Henri Verbeet : wined3d: Don' t apply more than num_contained_render_states in IWineD3DStateBlockImpl_Apply ().
Alexandre Julliard
julliard at winehq.org
Thu Oct 15 08:54:29 CDT 2009
Module: wine
Branch: master
Commit: ce10d5f18609fde445be4b3e744f81c622c75489
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ce10d5f18609fde445be4b3e744f81c622c75489
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Oct 15 10:36:41 2009 +0200
wined3d: Don't apply more than num_contained_render_states in IWineD3DStateBlockImpl_Apply().
---
dlls/wined3d/stateblock.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c
index 7de9c7c..fc61b09 100644
--- a/dlls/wined3d/stateblock.c
+++ b/dlls/wined3d/stateblock.c
@@ -940,7 +940,8 @@ should really perform a delta so that only the changes get updated*/
}
/* Render */
- for (i = 0; i <= This->num_contained_render_states; i++) {
+ for (i = 0; i < This->num_contained_render_states; i++)
+ {
IWineD3DDevice_SetRenderState(pDevice, This->contained_render_states[i],
This->renderState[This->contained_render_states[i]]);
}
More information about the wine-cvs
mailing list