]> git.cworth.org Git - apitrace/commitdiff
Retrace should info correct image's format to qapitrace.
authorHuang Dongsung <luxtella@company100.net>
Sat, 23 Jun 2012 07:38:57 +0000 (16:38 +0900)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 26 Jul 2012 10:12:12 +0000 (11:12 +0100)
Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
retrace/glstate_images.cpp

index 55afdd0a00392eba28c69b3eae459f1fe2d92f94..6390980966a91c8e17048718b20f01630e6aa338 100644 (file)
@@ -818,6 +818,10 @@ dumpReadBufferImage(JSONWriter &json, GLint width, GLint height, GLenum format,
 {
     GLint channels = _gl_format_channels(format);
 
+    if (internalFormat == GL_NONE) {
+        internalFormat = format;
+    }
+
     Context context;
 
     json.beginObject();