2 #include "IOSGLContext.h" 4 std::unique_ptr<GLContext> GLContext::_glcontext =
nullptr;
6 void GLContext::initGLContext() {
7 if (_glcontext ==
nullptr) {
13 if (_glcontext ==
nullptr) {
16 return _glcontext.get();
19 void GLContext::deleteGLContext() { _glcontext.reset(
nullptr); }