X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=cli%2Ftrace_analyzer.cpp;h=9a4553edc1895418ea9b745ad4a9562a34dd986d;hb=72b6644225bc5e4cc621cb0721c61fd2ac322330;hp=afca8026f1a62e6465c847b2812ca6d4a1139cc9;hpb=8efbe01f8cbd25ee9a731fd1d61f61337a108195;p=apitrace diff --git a/cli/trace_analyzer.cpp b/cli/trace_analyzer.cpp index afca802..9a4553e 100644 --- a/cli/trace_analyzer.cpp +++ b/cli/trace_analyzer.cpp @@ -319,6 +319,20 @@ TraceAnalyzer::recordSideEffects(trace::Call *call) return; } + /* FIXME: When we start tracking framebuffer objects as their own + * resources, we will want to link the FBO to the given texture + * resource, (and to this call). For now, just link render state + * to the texture, and force this call to be required. */ + if (strcmp(name, "glFramebufferTexture2D") == 0) { + GLuint texture; + + texture = call->arg(3).toUInt(); + + linkf("render-state", "texture-", texture); + + required.insert(call->no); + } + if (strcmp(name, "glBindTexture") == 0) { GLenum target; GLuint texture;