X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace%2Fglstate_params.py;h=094eb6c6c398fb9b41924ad773c816018724bd52;hb=17f8a32687c040c652e6d018100bab08bb0487bd;hp=64ac02d4f7e47448b885e62be790455e8eaeea14;hpb=9d9eb81d94075181c360d4712b9fd3baa58d5782;p=apitrace diff --git a/retrace/glstate_params.py b/retrace/glstate_params.py index 64ac02d..094eb6c 100644 --- a/retrace/glstate_params.py +++ b/retrace/glstate_params.py @@ -345,6 +345,7 @@ class StateDumper: print ' if (enabled || binding) {' print ' json.beginMember(enumToString(target));' print ' json.beginObject();' + print ' dumpObjectLabel(json, context, GL_TEXTURE, binding);' self.dump_atoms(glGetTexParameter, 'target') print ' if (!context.ES) {' print ' GLenum levelTarget;' @@ -432,6 +433,7 @@ class StateDumper: print ' if (sampler_binding) {' print ' json.beginMember("GL_SAMPLER");' print ' json.beginObject();' + print ' dumpObjectLabel(json, context, GL_SAMPLER, sampler_binding);' for _, _, name in glGetSamplerParameter.iter(): self.dump_atom(glGetSamplerParameter, 'sampler_binding', name) print ' json.endObject();' @@ -527,6 +529,7 @@ class StateDumper: print ' if (framebuffer) {' print ' json.beginMember("%s");' % target print ' json.beginObject();' + print ' dumpObjectLabel(json, context, GL_FRAMEBUFFER, framebuffer);' print ' for (GLint i = 0; i < max_color_attachments; ++i) {' print ' GLint color_attachment = GL_COLOR_ATTACHMENT0 + i;' print ' dumpFramebufferAttachementParameters(json, %s, color_attachment);' % target