From: jpbruyere Date: Sat, 13 Feb 2016 13:34:18 +0000 (+0100) Subject: clipping test in top container X-Git-Tag: v0.4~127^2~31 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=49a890470cd28968d6d4d559bdd620b56afe6b5e;p=jp%2Fcrow.git clipping test in top container --- diff --git a/src/OpenTKGameWindow.cs b/src/OpenTKGameWindow.cs index a9d04714..013f2eea 100644 --- a/src/OpenTKGameWindow.cs +++ b/src/OpenTKGameWindow.cs @@ -309,7 +309,8 @@ namespace Crow foreach (GraphicObject p in invGOList) { if (!p.Visible) continue; - + if (!clipping.intersect (p.Slot)) + continue; ctx.Save (); p.Paint (ref ctx);