diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-12-03 17:51:02 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-12-03 17:52:40 +0100 |
commit | e1a6b67946f48dc91690353fefe64e516cb37739 (patch) | |
tree | d3ec6323970c13234d6f534ffe7cc8a648214d94 | |
parent | fdo#86472 fix icons on dark theme in oxygen and sifr (diff) | |
download | core-e1a6b67946f48dc91690353fefe64e516cb37739.tar.gz core-e1a6b67946f48dc91690353fefe64e516cb37739.zip |
windows opengl: Call PreDraw() earlier in the text rendering too.
Change-Id: I2a29082291338af6fcd25e931802b0267d7da6f3
-rw-r--r-- | vcl/win/source/gdi/winlayout.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx index e405e499cbc3..228e67ac937a 100644 --- a/vcl/win/source/gdi/winlayout.cxx +++ b/vcl/win/source/gdi/winlayout.cxx @@ -218,13 +218,13 @@ void WinLayout::DrawText(SalGraphics& rGraphics) const WinOpenGLSalGraphicsImpl *pImpl = dynamic_cast<WinOpenGLSalGraphicsImpl*>(rWinGraphics.mpImpl.get()); if (pImpl) { + pImpl->PreDraw(); + boost::scoped_ptr<OpenGLTexture> pTexture(aDC.getTexture()); if (pTexture) - { - pImpl->PreDraw(); pImpl->DrawMask(*pTexture, salColor, aDC.getTwoRect()); - pImpl->PostDraw(); - } + + pImpl->PostDraw(); } } } |