diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-05-28 01:00:09 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-05-28 02:09:17 +0200 |
commit | 5419a2a8633c0f195a99cdc422e3e6c29bd8911f (patch) | |
tree | 39641832b7ccc02fa680d936fdb6d43bcb410920 /chart2 | |
parent | a630c368f791a178e068fac542c00086ae594c2a (diff) |
disable MSAA for the picking
MSAA can and will result in mixed colors which is a problem if we use
the color for the selection.
Change-Id: Ifbd6d37902069b26e714d2e3e5576fb767f9fbbf
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/GL3DRenderer.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chart2/source/view/main/GL3DRenderer.cxx b/chart2/source/view/main/GL3DRenderer.cxx index d1d43311c50c..d0104edeb6c3 100644 --- a/chart2/source/view/main/GL3DRenderer.cxx +++ b/chart2/source/view/main/GL3DRenderer.cxx @@ -1651,10 +1651,12 @@ void OpenGL3DRenderer::SetPickingMode(bool bPickingMode) if(mbPickingMode) { glBindFramebuffer(GL_FRAMEBUFFER, mnPickingFbo); + glDisable(GL_MULTISAMPLE); } else { glBindFramebuffer(GL_FRAMEBUFFER, 0); + glEnable(GL_MULTISAMPLE); } } |