Integration of render target binding

This commit is contained in:
Jack Andersen 2016-02-24 16:55:05 -10:00
parent c9631253a2
commit 9048ba9aa6
2 changed files with 2 additions and 1 deletions

View File

@ -145,6 +145,7 @@ public:
IViewManager& viewManager() const {return m_viewMan;}
ViewResources& viewRes() const {return *m_viewRes;}
const IThemeData& themeData() const {return *m_viewRes->m_theme;}
boo::ITextureR* renderTex() const {return m_renderTex;}
std::vector<View*>& accessContentViews() {return m_views;}

View File

@ -13,7 +13,7 @@ RootView::RootView(IViewManager& viewMan, ViewResources& res, boo::IWindow* wind
{
window->setCallback(&m_events);
boo::SWindowRect rect = window->getWindowFrame();
m_renderTex = res.m_factory->newRenderTexture(rect.size[0], rect.size[1]);
m_renderTex = res.m_factory->newRenderTexture(rect.size[0], rect.size[1], true, true);
commitResources(res);
resized(rect, rect);
}