fixed uninitialized screen sizes.

This commit is contained in:
rachytski 2012-01-10 17:28:53 +04:00 committed by Alex Zolotarev
parent c894f0168d
commit 283aa682b3

View file

@ -88,8 +88,12 @@ void TileRenderer::InitializeThreadGL(core::CommandsQueue::Environment const & e
{
ThreadData & threadData = m_threadData[env.threadNum()];
int tileWidth = m_resourceManager->params().m_renderTargetTexturesParams.m_texWidth;
int tileHeight = m_resourceManager->params().m_renderTargetTexturesParams.m_texHeight;
threadData.m_renderContext->makeCurrent();
threadData.m_drawer = new DrawerYG(threadData.m_drawerParams);
threadData.m_drawer->onSize(tileWidth, tileHeight);
}
void TileRenderer::FinalizeThreadGL(core::CommandsQueue::Environment const & env)