commit | 8b400b1e8d84c5b93dd151807504a3e4b90d1b21 | [log] [tgz] |
---|---|---|
author | apatrick@chromium.org <apatrick@chromium.org@736b8ea6-26fd-11df-bfd4-992fa37f6226> | Wed Jan 30 21:53:40 2013 +0000 |
committer | apatrick@chromium.org <apatrick@chromium.org@736b8ea6-26fd-11df-bfd4-992fa37f6226> | Wed Jan 30 21:53:40 2013 +0000 |
tree | a7676aa84f47574c82f6d9862fbfd1f9c6d5d466 | |
parent | a820c3098db0d5b4c5c1db2fb03157bfa2038112 [diff] [blame] |
Do not use dynamic_cast if RTTI is disabled. Review URL: https://codereview.appspot.com/7250043 git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1808 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/renderer/Renderer9.cpp b/src/libGLESv2/renderer/Renderer9.cpp index e05d875..be10afd 100644 --- a/src/libGLESv2/renderer/Renderer9.cpp +++ b/src/libGLESv2/renderer/Renderer9.cpp
@@ -164,7 +164,7 @@ Renderer9 *Renderer9::makeRenderer9(Renderer *renderer) { - ASSERT(dynamic_cast<rx::Renderer9*>(renderer) != NULL); + ASSERT(HAS_DYNAMIC_TYPE(rx::Renderer9*, renderer)); return static_cast<rx::Renderer9*>(renderer); }