glClearColor never actually generates an error.
This commit is contained in:
parent
3bb56a50d1
commit
68c506670b
@ -164,7 +164,6 @@ namespace SlatedGameToolkit.Framework.Graphics.OpenGL
|
|||||||
public void ClearColor(float red, float green, float blue, float alpha)
|
public void ClearColor(float red, float green, float blue, float alpha)
|
||||||
{
|
{
|
||||||
glClearColor.Invoke(red, green, blue, alpha);
|
glClearColor.Invoke(red, green, blue, alpha);
|
||||||
DetectGLError();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||||
@ -219,6 +218,7 @@ namespace SlatedGameToolkit.Framework.Graphics.OpenGL
|
|||||||
public void Disable(EnableCap cap)
|
public void Disable(EnableCap cap)
|
||||||
{
|
{
|
||||||
glDisable.Invoke(cap);
|
glDisable.Invoke(cap);
|
||||||
|
DetectGLError();
|
||||||
}
|
}
|
||||||
|
|
||||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user