Skip to content

Commit

Permalink
[sfml] Fixes #1786, sfml-cpp example must keep debug extension alive.
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Oct 21, 2020
1 parent d465458 commit d37854e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spine-sfml/cpp/example/main.cpp
Expand Up @@ -610,8 +610,9 @@ void test (SkeletonData* skeletonData, Atlas* atlas) {
}
}

DebugExtension dbgExtension(SpineExtension::getInstance());

int main () {
DebugExtension dbgExtension(SpineExtension::getInstance());
SpineExtension::setInstance(&dbgExtension);

testcase(ikDemo, "data/spineboy-pro.json", "data/spineboy-pro.skel", "data/spineboy-pma.atlas", 0.6f);
Expand Down

0 comments on commit d37854e

Please sign in to comment.