2021-26-03
+ Texture compression ~ General spring cleaning
This commit is contained in:
parent
bf1118c261
commit
7afec9c9ef
8 changed files with 42 additions and 32 deletions
|
|
@ -66,7 +66,7 @@ namespace SM.OGL
|
|||
/// <summary>
|
||||
/// Checks for OpenGL errors, while allowing to put stuff before and behind it.
|
||||
/// </summary>
|
||||
/// <param name="formating"></param>
|
||||
/// <param name="formating">To decided where to put the error code into, just enter "%code%" to that specific place.</param>
|
||||
/// <returns></returns>
|
||||
public static bool CheckGLErrors(string formating)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ namespace SM.OGL.Shaders
|
|||
foreach (ShaderFile file in Fragment)
|
||||
GL.DetachShader(shader, file);
|
||||
|
||||
GLDebugging.CheckGLErrors($"Error at detaching '{shader.GetType()}'");
|
||||
GLDebugging.CheckGLErrors($"Error at detaching '{shader.GetType()}': %code%");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue