Feb. 19, 2007
10:59 p.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