diff options
Diffstat (limited to 'src/adaptationlayers/adaptationlayer.cpp')
-rw-r--r-- | src/adaptationlayers/adaptationlayer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/adaptationlayers/adaptationlayer.cpp b/src/adaptationlayers/adaptationlayer.cpp index 0fdddd9..fe31289 100644 --- a/src/adaptationlayers/adaptationlayer.cpp +++ b/src/adaptationlayers/adaptationlayer.cpp @@ -41,6 +41,8 @@ #include "adaptationlayer.h" +#include <qdatetime.h> + /*! Constructs a new texture reference with status set to Null */ @@ -77,6 +79,9 @@ void TextureReference::setStatus(Status s) */ const TextureReference *TextureManager::requestUploadedTexture(const QImage &image, UploadHints hints, QObject *listener, const char *slot) { + QTime time; + time.start(); + QGLContext *context = const_cast<QGLContext *>(QGLContext::currentContext()); QGLContext::BindOptions options = QGLContext::PremultipliedAlphaBindOption; @@ -88,6 +93,8 @@ const TextureReference *TextureManager::requestUploadedTexture(const QImage &ima image.hasAlphaChannel() ? GL_RGBA : GL_RGB, options); + printf("Texture uploaded in: %d\n", time.elapsed()); + TextureReference *ref = new TextureReference(); if (listener && slot) |