diff --git a/Source/Render/sokol/SokolRenderState.cpp b/Source/Render/sokol/SokolRenderState.cpp index f6c8a169..3e6336e6 100644 --- a/Source/Render/sokol/SokolRenderState.cpp +++ b/Source/Render/sokol/SokolRenderState.cpp @@ -234,6 +234,7 @@ int cSokolRender::Fill(int r, int g, int b, int a) { } int cSokolRender::Flush(bool wnd) { + MT_IS_GRAPH(); RenderSubmitEvent(RenderEvent::FLUSH_SCENE); if (!sdl_window) { xassert(0); @@ -260,6 +261,7 @@ int cSokolRender::Flush(bool wnd) { } SokolBuffer* CreateSokolBuffer(MemoryResource* resource, size_t len, bool dynamic, sg_buffer_type type) { + MT_IS_GRAPH(); xassert(!resource->locked); xassert(len <= resource->data_len); sg_buffer_desc desc = {}; @@ -289,6 +291,7 @@ SokolBuffer* CreateSokolBuffer(MemoryResource* resource, size_t len, bool dynami } void cSokolRender::FinishActiveDrawBuffer() { + MT_IS_GRAPH(); if (!activeDrawBuffer || !activeDrawBuffer->written_vertices) { #ifdef PERIMETER_RENDER_TRACKER_DRAW_BUFFER_STATE RenderSubmitEvent(RenderEvent::FINISH_ACTIVE_DRAW_BUFFER, "No/Empty", activeDrawBuffer); @@ -313,6 +316,7 @@ void cSokolRender::FinishActiveDrawBuffer() { } void cSokolRender::CreateCommand(VertexBuffer* vb, size_t vertices, IndexBuffer* ib, size_t indices) { + MT_IS_GRAPH(); if (0 == vertices) vertices = activeCommand.vertices; if (0 == indices) indices = activeCommand.indices; PIPELINE_TYPE pipelineType = activePipelineType; @@ -467,6 +471,7 @@ void cSokolRender::CreateCommand(VertexBuffer* vb, size_t vertices, IndexBuffer* } void cSokolRender::SetActiveDrawBuffer(DrawBuffer* db) { + MT_IS_GRAPH(); if (activeDrawBuffer && activeDrawBuffer != db) { //Submit previous buffer first if (activeDrawBuffer->IsLocked()) {