GLDisabler::~GLDisabler() { // TODO - check previous state SOGLU_ASSERT(isGLContextActive()); GL_CHECKED_CALL(glEnable(mValue)); }
CubeMapCore::~CubeMapCore() { if (isGLContextActive()) { glDeleteTextures(1, &tex_); } }
GLDisabler::GLDisabler(int aValue) : mValue(aValue) { SOGLU_ASSERT(isGLContextActive()); GL_CHECKED_CALL(glDisable(mValue)); }