wined3d: Compare & copy with the correct clipplane size in IWineD3DStateBlockImpl_Capture().

This commit is contained in:
Henri Verbeet 2008-12-10 10:04:40 +01:00 committed by Alexandre Julliard
parent 4aa00e8a21
commit bcf0b4b128
1 changed files with 4 additions and 6 deletions

View File

@ -543,13 +543,11 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_Capture(IWineD3DStateBlock *iface)
} }
for (i = 0; i < GL_LIMITS(clipplanes); i++) { for (i = 0; i < GL_LIMITS(clipplanes); i++) {
if (This->changed.clipplane[i] && memcmp(targetStateBlock->clipplane[i], if (This->changed.clipplane[i]
This->clipplane[i], && memcmp(targetStateBlock->clipplane[i], This->clipplane[i], sizeof(*This->clipplane)))
sizeof(This->clipplane)) != 0) { {
TRACE("Updating clipplane %d\n", i); TRACE("Updating clipplane %d\n", i);
memcpy(This->clipplane[i], targetStateBlock->clipplane[i], memcpy(This->clipplane[i], targetStateBlock->clipplane[i], sizeof(*This->clipplane));
sizeof(This->clipplane));
} }
} }