Kaydet (Commit) c02d01ba authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Miklos Vajna

opengl: don't cache checkboxes for now

Change-Id: I67d0dcb48d1843587abbc1dc0f7da1f8057b281e
(cherry picked from commit 1c28c59f)
Reviewed-on: https://gerrit.libreoffice.org/17557Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 7152aa8c
...@@ -238,8 +238,15 @@ bool X11OpenGLSalGraphicsImpl::RenderAndCacheNativeControl(X11Pixmap* pPixmap, X ...@@ -238,8 +238,15 @@ bool X11OpenGLSalGraphicsImpl::RenderAndCacheNativeControl(X11Pixmap* pPixmap, X
{ {
std::unique_ptr<TextureCombo> pCombo(new TextureCombo); std::unique_ptr<TextureCombo> pCombo(new TextureCombo);
bool bResult = RenderPixmap(pPixmap, pMask, nX, nY, *pCombo); bool bResult = RenderPixmap(pPixmap, pMask, nX, nY, *pCombo);
if (!bResult)
return false;
if (aControlCacheKey.mnType == CTRL_CHECKBOX)
return true;
ControlCachePair pair(aControlCacheKey, std::move(pCombo)); ControlCachePair pair(aControlCacheKey, std::move(pCombo));
gTextureCache.insert(std::move(pair)); gTextureCache.insert(std::move(pair));
return bResult; return bResult;
} }
......
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