[1/3] wined3d: Properly check the clipplane index against the limit
H. Verbeet
hverbeet at gmail.com
Fri Mar 2 07:58:40 CST 2007
Changelog:
- Properly check the clipplane index against the limit
-------------- next part --------------
---
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-patches
mailing list