Wire up frame before/after events

This commit is contained in:
Scott Mansell
2023-01-30 23:59:54 +13:00
parent 154cb4f722
commit 2a18b34a73
6 changed files with 117 additions and 45 deletions

View File

@ -417,6 +417,12 @@ void VertexManagerBase::Flush()
m_is_flushed = true;
if (m_draw_counter == 0)
{
// This is more or less the start of the Frame
BeforeFrameEvent::Trigger();
}
if (xfmem.numTexGen.numTexGens != bpmem.genMode.numtexgens ||
xfmem.numChan.numColorChans != bpmem.genMode.numcolchans)
{