forked from organicmaps/organicmaps
"first redraw with multisampling on" fix.
This commit is contained in:
parent
127f16df1d
commit
d0c43a878e
1 changed files with 5 additions and 1 deletions
|
@ -257,7 +257,7 @@ void RenderQueueRoutine::Do()
|
|||
|
||||
processResize(m_currentRenderCommand->m_frameScreen);
|
||||
|
||||
m_threadDrawer->screen()->setRenderTarget(m_renderState->m_backBufferLayers.front());
|
||||
// m_threadDrawer->screen()->setRenderTarget(m_renderState->m_backBufferLayers.front());
|
||||
|
||||
m_currentRenderCommand->m_paintEvent = make_shared_ptr(new PaintEvent(m_threadDrawer));
|
||||
|
||||
|
@ -284,6 +284,10 @@ void RenderQueueRoutine::Do()
|
|||
|
||||
m_threadDrawer->beginFrame();
|
||||
|
||||
/// this fixes some strange issue with multisampled framebuffer.
|
||||
/// setRenderTarget should be made here.
|
||||
m_threadDrawer->screen()->setRenderTarget(s.m_backBufferLayers.front());
|
||||
|
||||
m_threadDrawer->screen()->enableClipRect(true);
|
||||
m_threadDrawer->screen()->setClipRect(m2::RectI(0, 0, s.m_textureWidth, s.m_textureHeight));
|
||||
m_threadDrawer->clear();
|
||||
|
|
Loading…
Add table
Reference in a new issue