H. Verbeet : wined3d: Properly check the clipplane index against the limit.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 5 06:23:10 CST 2007


Module: wine
Branch: master
Commit: 3aaabf4e2772f6cd8415ffd44a7a283bbccd92dc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3aaabf4e2772f6cd8415ffd44a7a283bbccd92dc

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Fri Mar  2 14:58:40 2007 +0100

wined3d: Properly check the clipplane index against the limit.

---

 dlls/wined3d/state.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 0f107c3..64bce1c 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -2053,7 +2053,7 @@ static void transform_world(DWORD state, IWineD3DStateBlockImpl *stateblock, Win
 static void clipplane(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DContext *context) {
     UINT index = state - STATE_CLIPPLANE(0);
 
-    if(isStateDirty(context, STATE_TRANSFORM(WINED3DTS_VIEW)) || index > GL_LIMITS(clipplanes)) {
+    if(isStateDirty(context, STATE_TRANSFORM(WINED3DTS_VIEW)) || index >= GL_LIMITS(clipplanes)) {
         return;
     }
 




More information about the wine-cvs mailing list