diff --git a/driver/amuseplay.cpp b/driver/amuseplay.cpp index 1fd3cee..3cf63bc 100644 --- a/driver/amuseplay.cpp +++ b/driver/amuseplay.cpp @@ -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 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();