diff options
author | Nigel Stewart <nstewart@nvidia.com> | 2013-07-10 09:01:01 -0500 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2013-07-11 18:14:59 +0100 |
commit | abaef29db0cf1a3e2adb0c254886162368b1645a (patch) | |
tree | be5d9d539235b937d1e842598e2b102fb8d8658b /retrace/glretrace_ws.cpp | |
parent | 084fe926e8fbbdf41f19d844157e4baac6a6b538 (diff) |
Replace dynamic_cast with virtual functions.
apitrace can be built with without RTTI (runtime type information)
providing that dynamic_cast isn't used.
Diffstat (limited to 'retrace/glretrace_ws.cpp')
-rw-r--r-- | retrace/glretrace_ws.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/retrace/glretrace_ws.cpp b/retrace/glretrace_ws.cpp index ab3c41af..d1e85f82 100644 --- a/retrace/glretrace_ws.cpp +++ b/retrace/glretrace_ws.cpp @@ -233,7 +233,7 @@ updateDrawable(int width, int height) { int parseAttrib(const trace::Value *attribs, int param, int default_ = 0) { - const trace::Array *attribs_ = dynamic_cast<const trace::Array *>(attribs); + const trace::Array *attribs_ = attribs ? attribs->toArray() : NULL; if (attribs_) { for (size_t i = 0; i + 1 < attribs_->values.size(); i += 2) { |