From 113a35d0fe8938973fa1c100b77f456ed250e61b Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Tue, 2 Jun 2020 21:47:06 -0300 Subject: OpenGL bugfixes and wxGC port alternative init OpenGL major bugfixes; Device context port alternative to OpenGL code init (WorkspaceDC). Some machines don't support OpenGL 3+; Fixed some issues with MSVC. --- Project/GraphAutoLayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Project/GraphAutoLayout.cpp') diff --git a/Project/GraphAutoLayout.cpp b/Project/GraphAutoLayout.cpp index 972ce25..bf3bc91 100644 --- a/Project/GraphAutoLayout.cpp +++ b/Project/GraphAutoLayout.cpp @@ -34,7 +34,7 @@ void GraphAutoLayout::AddLink(size_t index1, size_t index2, float weight) m_nodes.push_back(node); } // Add an edge - m_edges.push_back((GraphLayoutEdge){.node1 = m_nodes[index1], .node2 = m_nodes[index2], .weight = weight}); + m_edges.push_back({.node1 = m_nodes[index1], .node2 = m_nodes[index2], .weight = weight}); } void GraphAutoLayout::Compute(size_t iterations) -- cgit