Exemplo n.º 1
0
 public static ICollection<uint> GetGlErrors(OpenGL gl)
 {
     ICollection<uint> errors = new List<uint>();
     while (true)
     {
     uint error = gl.GetError();
     if (error == OpenGL.GL_NO_ERROR)
     {
         return errors;
     }
     errors.Add(error);
     }
 }
Exemplo n.º 2
0
 public static uint NextGlError(OpenGL gl)
 {
     return gl.GetError();
 }
Exemplo n.º 3
0
 public static void ClearGlErrors(OpenGL gl)
 {
     while (gl.GetError() != OpenGL.GL_NO_ERROR);
 }