1 #include "vogleditor_gl_state_snapshot.h"
3 vogleditor_gl_state_snapshot::vogleditor_gl_state_snapshot(vogl_gl_state_snapshot* pSnapshot)
4 : m_pSnapshot(pSnapshot),
10 vogleditor_gl_state_snapshot::~vogleditor_gl_state_snapshot()
12 if (m_pSnapshot != NULL)
14 vogl_delete(m_pSnapshot);
19 void vogleditor_gl_state_snapshot::set_outdated(bool bOutdated)
21 if (m_bOutdated == bOutdated)
24 m_bOutdated = bOutdated;
27 // for now, we will delete the snapshot to save memory, in the future we will
28 // want to keep it around so that we can diff between them.
29 if (m_pSnapshot != NULL)
31 vogl_delete(m_pSnapshot);
37 VOGL_ASSERT(!"We should not be setting a snapshot as no-longer outdated.");