Skip to content

Commit

Permalink
onnx: fix crash on cpufilternode
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Dec 23, 2024
1 parent 746f8b7 commit 9478834
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/plugins/score-plugin-avnd/Crousti/CpuFilterNode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ struct GfxRenderer<Node_T> final : score::gfx::GenericNodeRenderer
const auto& mesh = renderer.defaultTriangle();
this->defaultMeshInit(renderer, mesh, res);
this->processUBOInit(renderer);
this->m_material.init(renderer, this->node.input, this->m_samplers);
// Not needed here as we do not have a GPU pass:
// this->m_material.init(renderer, this->node.input, this->m_samplers);

std::tie(this->m_vertexS, this->m_fragmentS)
= score::gfx::makeShaders(renderer.state, generic_texgen_vs, generic_texgen_fs);

Expand Down
3 changes: 2 additions & 1 deletion src/plugins/score-plugin-avnd/Crousti/CpuGeneratorNode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ struct GfxRenderer<Node_T> final : score::gfx::GenericNodeRenderer
const auto& mesh = renderer.defaultTriangle();
this->defaultMeshInit(renderer, mesh, res);
this->processUBOInit(renderer);
this->m_material.init(renderer, this->node.input, this->m_samplers);
// Not needed here as we do not have a GPU pass:
// this->m_material.init(renderer, this->node.input, this->m_samplers);
std::tie(this->m_vertexS, this->m_fragmentS)
= score::gfx::makeShaders(renderer.state, generic_texgen_vs, generic_texgen_fs);

Expand Down

0 comments on commit 9478834

Please sign in to comment.