Error operator()(GlState&) { OcclusionQueryImpl& impl = m_q->getImplementation(); impl.init(m_condRenderingBit); GlObject::State oldState = impl.setStateAtomically(GlObject::State::CREATED); (void)oldState; ANKI_ASSERT(oldState == GlObject::State::TO_BE_CREATED); return ErrorCode::NONE; }
Error operator()(GlState&) { m_handle->getImplementation().end(); return ErrorCode::NONE; }