Anonymous - 2011-09-28

I needed to paint a invisible rectangular mask into depth buffer and then paint an object so that as the object intersects with mask, part of it will become occluded.
I found no other solution to this problem than applying this patch.

I think user control in sorting is necessary.