summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-09-11 04:53:00 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-09-11 04:53:00 (GMT)
commitf9243aac1e26ccf9f46cc1d7de5f57063a053211 (patch)
tree6c247457808672f3b7db1b67819f33cc724159db /src/opengl
parent88035568a9eb19fe92595eff6d5df1ecb493916d (diff)
downloadQt-f9243aac1e26ccf9f46cc1d7de5f57063a053211.zip
Qt-f9243aac1e26ccf9f46cc1d7de5f57063a053211.tar.gz
Qt-f9243aac1e26ccf9f46cc1d7de5f57063a053211.tar.bz2
Dump texture formats in hex, not decimal
Reviewed-by: trustme
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/qgl.cpp4
1 files 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()...