From d0c43a878e8939a331f7aaaee349e7fe5b082f9e Mon Sep 17 00:00:00 2001 From: rachytski Date: Tue, 8 Feb 2011 00:40:37 +0200 Subject: [PATCH] "first redraw with multisampling on" fix. --- map/render_queue_routine.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/map/render_queue_routine.cpp b/map/render_queue_routine.cpp index 1c9ecb8f62..ce49334345 100644 --- a/map/render_queue_routine.cpp +++ b/map/render_queue_routine.cpp @@ -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();