From f9243aac1e26ccf9f46cc1d7de5f57063a053211 Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Fri, 11 Sep 2009 14:53:00 +1000 Subject: Dump texture formats in hex, not decimal Reviewed-by: trustme --- src/opengl/qgl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opengl/qgl.cpp b/src/opengl/qgl.cpp index bb20b6d..0e05b10 100644 --- a/src/opengl/qgl.cpp +++ b/src/opengl/qgl.cpp @@ -2183,8 +2183,8 @@ QGLTexture* QGLContextPrivate::bindTexture(const QImage &image, GLenum target, G } } #ifdef QGL_BIND_TEXTURE_DEBUG - printf(" - uploading, image.format=%d, externalFormat=0x%d, internalFormat=0x%d\n", - img.format(), externalFormat, internalFormat); + printf(" - uploading, image.format=%d, externalFormat=0x%x, internalFormat=0x%x, pixel_type=0x%x\n", + img.format(), externalFormat, internalFormat, pixel_type); #endif const QImage &constRef = img; // to avoid detach in bits()... -- cgit v0.12