X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace%2Fglstate_images.cpp;h=e5e14517dc299e78d65fe69e98899961bc18cec2;hb=8739fa62b41d54455447a27c4185371366bd726e;hp=e534a654320ef55bafbe1adda4d847df0af3e6da;hpb=a2bf2877bc458822cd019992943b638ee29e3740;p=apitrace diff --git a/retrace/glstate_images.cpp b/retrace/glstate_images.cpp index e534a65..e5e1451 100644 --- a/retrace/glstate_images.cpp +++ b/retrace/glstate_images.cpp @@ -409,9 +409,9 @@ dumpActiveTextureLevel(JSONWriter &json, Context &context, GLenum target, GLint // Tell the GUI this is no ordinary object, but an image json.writeStringMember("__class__", "image"); - json.writeNumberMember("__width__", desc.width); - json.writeNumberMember("__height__", desc.height); - json.writeNumberMember("__depth__", desc.depth); + json.writeIntMember("__width__", desc.width); + json.writeIntMember("__height__", desc.height); + json.writeIntMember("__depth__", desc.depth); json.writeStringMember("__format__", formatToString(desc.internalFormat)); @@ -419,7 +419,7 @@ dumpActiveTextureLevel(JSONWriter &json, Context &context, GLenum target, GLint // texture internal format json.writeStringMember("__type__", "uint8"); json.writeBoolMember("__normalized__", true); - json.writeNumberMember("__channels__", channels); + json.writeIntMember("__channels__", channels); GLubyte *pixels = new GLubyte[desc.depth*desc.width*desc.height*channels]; @@ -859,9 +859,9 @@ dumpReadBufferImage(JSONWriter &json, GLint width, GLint height, GLenum format, // Tell the GUI this is no ordinary object, but an image json.writeStringMember("__class__", "image"); - json.writeNumberMember("__width__", width); - json.writeNumberMember("__height__", height); - json.writeNumberMember("__depth__", 1); + json.writeIntMember("__width__", width); + json.writeIntMember("__height__", height); + json.writeIntMember("__depth__", 1); json.writeStringMember("__format__", formatToString(internalFormat)); @@ -869,7 +869,7 @@ dumpReadBufferImage(JSONWriter &json, GLint width, GLint height, GLenum format, // texture internal format json.writeStringMember("__type__", "uint8"); json.writeBoolMember("__normalized__", true); - json.writeNumberMember("__channels__", channels); + json.writeIntMember("__channels__", channels); GLenum type = GL_UNSIGNED_BYTE;