summaryrefslogtreecommitdiffstats
path: root/src/adaptationlayers/default/default_glyphnode_p.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/adaptationlayers/default/default_glyphnode_p.cpp')
-rw-r--r--src/adaptationlayers/default/default_glyphnode_p.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/adaptationlayers/default/default_glyphnode_p.cpp b/src/adaptationlayers/default/default_glyphnode_p.cpp
index 5d2bdc6..8ea64c4 100644
--- a/src/adaptationlayers/default/default_glyphnode_p.cpp
+++ b/src/adaptationlayers/default/default_glyphnode_p.cpp
@@ -313,10 +313,12 @@ bool TextMaskMaterial::ensureUpToDate()
{
QSize glyphCacheSize(glyphCache()->width(), glyphCache()->height());
if (glyphCacheSize != m_size) {
- // ### gunnar: port properly..
-// m_texture = QGLTexture2DPtr(QGLTexture2D::fromTextureId(glyphCache()->texture(),
-// QSize(glyphCache()->width(),
-// glyphCache()->height())));
+ m_texture = new TextureReference;
+ m_texture->setTextureId(glyphCache()->texture());
+ m_texture->setTextureSize(QSize(glyphCache()->width(),
+ glyphCache()->height()));
+ m_texture->setStatus(TextureReference::Ready);
+
m_size = glyphCacheSize;
return true;