Kaydet (Commit) 1c28c59f authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

opengl: don't cache checkboxes for now

Change-Id: I67d0dcb48d1843587abbc1dc0f7da1f8057b281e
üst 3bc00eca
...@@ -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