re-adding opengl error helper class