20 Feb
2007
20 Feb
'07
4:59 a.m.
Stefan Dösinger wrote:
+ if(memcmp(&This->updateStateBlock->scissorRect, pRect, sizeof(*pRect)) == 0) { + TRACE("App is setting the old scissor rectangle over, nothing to do\n"); + return WINED3D_OK; + } memcpy(&This->updateStateBlock->scissorRect, pRect, sizeof(*pRect));
You should use EqualRect() and CopyRect() instead of memcmp and memcpy for RECTs. Vitaliy