]> git.cworth.org Git - apitrace/blobdiff - cli/trace_analyzer.cpp
Replace dynamic_cast with virtual functions.
[apitrace] / cli / trace_analyzer.cpp
index 374e6ceffedcc545c86aa11b8403679cce27a7bd..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;