wined3d: Properly check the clipplane index against the limit.

This commit is contained in:
H. Verbeet 2007-03-02 14:58:40 +01:00 committed by Alexandre Julliard
parent 1879eaa907
commit 3aaabf4e27
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}