public void Check() { FramebufferErrorCode FEC; if ((FEC = GLf.CheckFramebufferStatus(FramebufferTarget.Framebuffer)) != FramebufferErrorCode.FramebufferComplete) { throw new Exception(FEC.ToString()); } ErrorCode EC; if ((EC = GL.GetError()) != ErrorCode.NoError) { throw new Exception(EC.ToString()); } }