Skip to content

Commit

Permalink
Update amuseplay for boo changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jackoalan committed Nov 5, 2017
1 parent 047a914 commit e18c0a6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions driver/amuseplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,12 +629,11 @@ struct AppCallback : boo::IApplicationCallback
m_win->setWindowFrame(100, 100, 100, 100);
m_win->setStyle(~boo::EWindowStyle::Resize);
m_win->showWindow();
boo::ITextureR* tex = nullptr;
boo::GraphicsDataToken gfxToken =
m_win->getMainContextDataFactory()->commitTransaction([&](boo::IGraphicsDataFactory::Context& ctx) -> bool {
tex = ctx.newRenderTexture(100, 100, boo::TextureClampMode::Repeat, 0, 0);
return true;
});
boo::ObjToken<boo::ITextureR> tex;
m_win->getMainContextDataFactory()->commitTransaction([&](boo::IGraphicsDataFactory::Context& ctx) -> bool {
tex = ctx.newRenderTexture(100, 100, boo::TextureClampMode::Repeat, 0, 0);
return true;
});
boo::IGraphicsCommandQueue* q = m_win->getCommandQueue();
q->setRenderTarget(tex);
q->clearTarget();
Expand Down

0 comments on commit e18c0a6

Please sign in to comment.