Skip to content

Commit 5331369

Browse files
committed
tool action rendering
1 parent af25d25 commit 5331369

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

program.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,13 @@ void Program::Render()
283283
.matrix("u_view", scale);
284284
buffer.render();
285285

286+
if (tools.selectedTool()._actionFactory != nullptr &&
287+
tools.selectedTool()._actionFactory->ToolHelperImage() > 0)
288+
{
289+
glBindTexture(GL_TEXTURE_2D, tools.selectedTool()._actionFactory->ToolHelperImage());
290+
buffer.render();
291+
}
292+
286293
buffer.unbind();
287294
}
288295

0 commit comments

Comments
 (0)