Remove uses of state-mutating Rectangle.Offset and Intersect.
This commit is contained in:
@@ -214,7 +214,7 @@ namespace OpenRA
|
||||
{
|
||||
// Must remain inside the current scissor rect
|
||||
if (scissorState.Any())
|
||||
rect.Intersect(scissorState.Peek());
|
||||
rect = Rectangle.Intersect(rect, scissorState.Peek());
|
||||
|
||||
Flush();
|
||||
Context.EnableScissor(rect.Left, rect.Top, rect.Width, rect.Height);
|
||||
|
||||
Reference in New Issue
Block a user