wined3d: Compare & copy with the correct clipplane size in IWineD3DStateBlockImpl_Capture().
This commit is contained in:
parent
4aa00e8a21
commit
bcf0b4b128
|
@ -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));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue