]> git.cworth.org Git - apitrace/blobdiff - cli/trace_analyzer.cpp
trim: Don't consider a SwapBuffers call has having no side effects
[apitrace] / cli / trace_analyzer.cpp
index 730dab91b08d8478d001ed75d319938a2d55894d..803c81cde1b0c8f8d54725ff1a9120b61ea713dd 100644 (file)
@@ -271,12 +271,6 @@ TraceAnalyzer::callHasNoSideEffects(trace::Call *call, const char *name)
         return true;
     }
 
-    /* Similarly, swap-buffers calls don't have interesting side effects. */
-    if (call->flags & trace::CALL_FLAG_SWAP_RENDERTARGET &&
-        call->flags & trace::CALL_FLAG_END_FRAME) {
-        return true;
-    }
-
     /* Not known as a no-side-effect call. Return false for more analysis. */
     return false;
 }