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/ControlElementSolver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Project/ControlElementSolver.cpp') diff --git a/Project/ControlElementSolver.cpp b/Project/ControlElementSolver.cpp index 7849313..037da84 100644 --- a/Project/ControlElementSolver.cpp +++ b/Project/ControlElementSolver.cpp @@ -62,10 +62,10 @@ void ControlElementSolver::Initialize(wxWindow* parent, double timeStep, double haveInput = haveOutput = false; for(auto it = ioList.begin(), itEnd = ioList.end(); it != itEnd; ++it) { IOControl* io = *it; - if(io->GetType() == Node::NODE_OUT && !haveInput) { + if(io->GetType() == Node::NodeType::NODE_OUT && !haveInput) { m_inputControl = io; haveInput = true; - } else if(io->GetType() == Node::NODE_IN) { + } else if(io->GetType() == Node::NodeType::NODE_IN) { m_outputControl = io; haveOutput = true; } @@ -329,7 +329,7 @@ ConnectionLine* ControlElementSolver::SolveNextElement(ConnectionLine* currentLi auto nodeList = element->GetNodeList(); for(auto itN = nodeList.begin(), itNEnd = nodeList.end(); itN != itNEnd; ++itN) { Node* node = *itN; - if(node->GetNodeType() == Node::NODE_OUT) outNode = node; + if(node->GetNodeType() == Node::NodeType::NODE_OUT) outNode = node; } if(!outNode) return NULL; -- cgit