diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2010-12-07 13:25:23 +0100 |
---|---|---|
committer | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2010-12-07 13:25:23 +0100 |
commit | f3073afd4a44a659152a7983d55887090792b4a9 (patch) | |
tree | 96a8e8a16985dce740920eedb3f53c85c2e10178 | |
parent | 8ab14c354cf5a426295c55f6a62b07d0fde2c805 (diff) |
Compile fix.
-rw-r--r-- | src/adaptationlayers/threadedtexturemanager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/adaptationlayers/threadedtexturemanager.cpp b/src/adaptationlayers/threadedtexturemanager.cpp index 46f06a0..b9d128f 100644 --- a/src/adaptationlayers/threadedtexturemanager.cpp +++ b/src/adaptationlayers/threadedtexturemanager.cpp @@ -70,6 +70,7 @@ public: QSGTTMUploadThread *thread; QGLContext *context; QGLWidget *widget; + QGLFunctions functions; }; QSGThreadedTextureManager::QSGThreadedTextureManager() @@ -134,6 +135,7 @@ void QSGThreadedTextureManager::initializeThreadContext() d->context = const_cast<QGLContext *>(d->widget->context()); if (!d->context) qFatal("QSGThreadedTextureManager: failed to create thread context..."); + d->functions.initializeGLFunctions(d->context); d->widget->doneCurrent(); @@ -174,7 +176,7 @@ void QSGThreadedTextureManager::uploadInThread(TextureReference *texture, const glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, image.width(), image.height(), 0, GL_BGRA, GL_UNSIGNED_BYTE, image.constBits()); if (hints & TextureManager::GenerateMipmapUploadHint) - glGenerateMipmap(GL_TEXTURE_2D); + d->functions.glGenerateMipmap(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, 0); |