Kaydet (Commit) fe8eddc8 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

windows opengl: Call PreDraw() earlier in the text rendering too.

Change-Id: I2a29082291338af6fcd25e931802b0267d7da6f3
üst 093b3d30
...@@ -218,13 +218,13 @@ void WinLayout::DrawText(SalGraphics& rGraphics) const ...@@ -218,13 +218,13 @@ void WinLayout::DrawText(SalGraphics& rGraphics) const
WinOpenGLSalGraphicsImpl *pImpl = dynamic_cast<WinOpenGLSalGraphicsImpl*>(rWinGraphics.mpImpl.get()); WinOpenGLSalGraphicsImpl *pImpl = dynamic_cast<WinOpenGLSalGraphicsImpl*>(rWinGraphics.mpImpl.get());
if (pImpl) if (pImpl)
{ {
pImpl->PreDraw();
boost::scoped_ptr<OpenGLTexture> pTexture(aDC.getTexture()); boost::scoped_ptr<OpenGLTexture> pTexture(aDC.getTexture());
if (pTexture) if (pTexture)
{
pImpl->PreDraw();
pImpl->DrawMask(*pTexture, salColor, aDC.getTwoRect()); pImpl->DrawMask(*pTexture, salColor, aDC.getTwoRect());
pImpl->PostDraw();
} pImpl->PostDraw();
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment