Skip to content

Commit

Permalink
[dataflow][rendering] update to dataflow core evolution
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasPaulin committed Feb 10, 2023
1 parent ca3cd57 commit 0518609
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/DataflowExamples/GraphRendering/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ class MyRendererController : public RenderGraphController
inspectGraph( *m_renderGraph );

// force recompilation and introspection of the graph by the renderer
m_renderGraph->m_ready = false;
m_renderGraph->isCompiled() = false;
notify();
}
};
Expand Down
4 changes: 2 additions & 2 deletions src/Dataflow/Rendering/Renderer/RenderGraphController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void RenderGraphController::resize( int w, int h ) {
}

void RenderGraphController::compile( bool notifyObservers ) const {
if ( !m_renderGraph->m_ready ) {
if ( !m_renderGraph->isCompiled() ) {
// compile the model
m_renderGraph->compile();
// notify the view the model changes
Expand Down Expand Up @@ -80,7 +80,7 @@ RenderGraphController::render( std::vector<RenderObjectPtrType>* ros,

bool status = false;

if ( m_renderGraph && m_renderGraph->m_ready ) {
if ( m_renderGraph && m_renderGraph->isCompiled() ) {
// set input data
for ( const auto& [ptr, name, type] : m_renderGraphInputs ) {
if ( type == simplifiedDemangledType( *ros ) ) {
Expand Down

0 comments on commit 0518609

Please sign in to comment.