private void LoadTextureIcon(NodeBase node) { if (((STGenericTexture)node.Tag).RenderableTex == null) { ((STGenericTexture)node.Tag).LoadRenderableTexture(); } //Render textures loaded in GL as an icon if (((STGenericTexture)node.Tag).RenderableTex != null) { var tex = ((STGenericTexture)node.Tag); //Turn the texture to a cached icon IconManager.LoadTexture(node.Header, tex); ImGui.SameLine(); } }