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:53:15 +0100 |
commit | fe8eddc8d31451550593cb5789b5b5b5071a8d11 (patch) | |
tree | 56023da2abcb948ef537708763996d6a87e2c986 /vcl/win | |
parent | 093b3d30f257a01122042eb4d116ee54fbdb7033 (diff) |
windows opengl: Call PreDraw() earlier in the text rendering too.
Change-Id: I2a29082291338af6fcd25e931802b0267d7da6f3
Diffstat (limited to 'vcl/win')
-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(); } } } |