]> git.cworth.org Git - apitrace/blobdiff - cli/trace_analyzer.cpp
d3dretrace: Make --driver work correctly on DXGI1.1
[apitrace] / cli / trace_analyzer.cpp
index febeadb18a5bd3faa358083e49d220a27a1e075d..79f95579eb2626be39a3aa724542367147f2de04 100644 (file)
@@ -279,7 +279,7 @@ bool
 TraceAnalyzer::recordTextureSideEffects(trace::Call *call, const char *name)
 {
     if (strcmp(name, "glGenTextures") == 0) {
-        const trace::Array *textures = dynamic_cast<const trace::Array *>(&call->arg(1));
+        const trace::Array *textures = call->arg(1).toArray();
         size_t i;
         GLuint texture;
 
@@ -760,7 +760,7 @@ TraceAnalyzer::require(trace::Call *call)
 /* Return a set of all the required calls, (both those calls added
  * explicitly with require() and those implicitly depended
  * upon. */
-trim::CallSet *
+trace::FastCallSet *
 TraceAnalyzer::get_required(void)
 {
     return &required;