glClearColor never actually generates an error.

This commit is contained in:
Harrison Deng 2020-07-10 18:01:09 -05:00
parent 3bb56a50d1
commit 68c506670b

View File

@ -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)]