diff options
Diffstat (limited to 'src/opengl/qgl_p.h')
-rw-r--r-- | src/opengl/qgl_p.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/opengl/qgl_p.h b/src/opengl/qgl_p.h index df099ea281..904f3c1a3e 100644 --- a/src/opengl/qgl_p.h +++ b/src/opengl/qgl_p.h @@ -380,19 +380,18 @@ class Q_OPENGL_EXPORT QGLTextureDestroyer : public QObject Q_OBJECT public: QGLTextureDestroyer() : QObject() { - qRegisterMetaType<GLuint>(); - connect(this, SIGNAL(freeTexture(QGLContext *, QPlatformPixmap *, GLuint)), - this, SLOT(freeTexture_slot(QGLContext *, QPlatformPixmap *, GLuint))); + connect(this, SIGNAL(freeTexture(QGLContext *, QPlatformPixmap *, quint32)), + this, SLOT(freeTexture_slot(QGLContext *, QPlatformPixmap *, quint32))); } void emitFreeTexture(QGLContext *context, QPlatformPixmap *boundPixmap, GLuint id) { emit freeTexture(context, boundPixmap, id); } Q_SIGNALS: - void freeTexture(QGLContext *context, QPlatformPixmap *boundPixmap, GLuint id); + void freeTexture(QGLContext *context, QPlatformPixmap *boundPixmap, quint32 id); private slots: - void freeTexture_slot(QGLContext *context, QPlatformPixmap *boundPixmap, GLuint id) { + void freeTexture_slot(QGLContext *context, QPlatformPixmap *boundPixmap, quint32 id) { Q_UNUSED(boundPixmap); QGLShareContextScope scope(context); glDeleteTextures(1, &id); |