From d07684ca01117e8b5d56afc18219b30e53d49a7a Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 4 Jun 2009 10:35:31 +0000 Subject: [PATCH] Use "IGraphicsContext.ErrorChecking = false|true" inside Begin|End wrappers. --- Source/Bind/Structures/Function.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Bind/Structures/Function.cs b/Source/Bind/Structures/Function.cs index a2b77560..0c905bc5 100644 --- a/Source/Bind/Structures/Function.cs +++ b/Source/Bind/Structures/Function.cs @@ -465,7 +465,7 @@ namespace Bind.Structures f.Body.Add("using (new ErrorHelper(GraphicsContext.CurrentContext))"); f.Body.Add("{"); if (f.TrimmedName == "Begin") - f.Body.Add("GraphicsContext.CurrentContext.EnterBeginRegion();"); + f.Body.Add("GraphicsContext.CurrentContext.ErrorChecking = false;"); f.Body.Add("#endif"); } @@ -555,7 +555,7 @@ namespace Bind.Structures { f.Body.Add("#if DEBUG"); if (f.TrimmedName == "End") - f.Body.Add("GraphicsContext.CurrentContext.ExitBeginRegion();"); + f.Body.Add("GraphicsContext.CurrentContext.ErrorChecking = true;"); f.Body.Add("}"); f.Body.Add("#endif"); }