From 68c506670ba88789b5eb9c3ed1fb1856daeaaaaa Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Fri, 10 Jul 2020 18:01:09 -0500 Subject: [PATCH] glClearColor never actually generates an error. --- src/SlatedGameToolkit.Framework/Graphics/OpenGL/GLContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SlatedGameToolkit.Framework/Graphics/OpenGL/GLContext.cs b/src/SlatedGameToolkit.Framework/Graphics/OpenGL/GLContext.cs index 94219d6..23f85ce 100644 --- a/src/SlatedGameToolkit.Framework/Graphics/OpenGL/GLContext.cs +++ b/src/SlatedGameToolkit.Framework/Graphics/OpenGL/GLContext.cs @@ -164,7 +164,6 @@ namespace SlatedGameToolkit.Framework.Graphics.OpenGL public void ClearColor(float red, float green, float blue, float alpha) { glClearColor.Invoke(red, green, blue, alpha); - DetectGLError(); } [UnmanagedFunctionPointer(CallingConvention.Cdecl)] @@ -219,6 +218,7 @@ namespace SlatedGameToolkit.Framework.Graphics.OpenGL public void Disable(EnableCap cap) { glDisable.Invoke(cap); + DetectGLError(); } [UnmanagedFunctionPointer(CallingConvention.Cdecl)]