Linux amuseplay crash fixes

This commit is contained in:
Jack Andersen 2018-05-06 12:47:03 -10:00
parent 912eb7950c
commit 3833c137f6
1 changed files with 3 additions and 1 deletions

View File

@ -631,7 +631,7 @@ struct AppCallback : boo::IApplicationCallback
m_win->showWindow(); m_win->showWindow();
boo::ObjToken<boo::ITextureR> tex; boo::ObjToken<boo::ITextureR> tex;
m_win->getMainContextDataFactory()->commitTransaction([&](boo::IGraphicsDataFactory::Context& ctx) -> bool { m_win->getMainContextDataFactory()->commitTransaction([&](boo::IGraphicsDataFactory::Context& ctx) -> bool {
tex = ctx.newRenderTexture(100, 100, boo::TextureClampMode::Repeat, 0, 0); tex = ctx.newRenderTexture(100, 100, boo::TextureClampMode::Repeat, 1, 0);
return true; return true;
}); });
boo::IGraphicsCommandQueue* q = m_win->getCommandQueue(); boo::IGraphicsCommandQueue* q = m_win->getCommandQueue();
@ -927,6 +927,8 @@ struct AppCallback : boo::IApplicationCallback
else else
SongLoop(*songIndex, *voxEngine); SongLoop(*songIndex, *voxEngine);
m_vox.reset();
m_seq.reset();
m_engine.reset(); m_engine.reset();
m_booBackend.reset(); m_booBackend.reset();
printf("\n\n"); printf("\n\n");