Re: [8/10] WineD3D: Move the scissor rectangle to the state table,Stefan Dösinger
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
6874
Age (days ago)
6874
Last active (days ago)
0 comments
1 participants
participants (1)
-
Vitaliy Margolen