private void ErrorTest()
        {
#if _DEBUG
            var error = Gl.glGetError();
            if (error != Gl.GL_NO_ERROR)
            {
                var msg = string.Format("GL Error {0}", error);
                Log.Error(msg);
                throw new Exception(msg);
            }
#endif
        }
 public int getError()
 {
     return(Gl.glGetError());
 }