rsx: Runtime check on RTT cast

This commit is contained in:
kd-11 2019-10-17 02:01:36 +03:00 committed by kd-11
parent 5c7bbb3354
commit cb362b4085
2 changed files with 2 additions and 2 deletions

View file

@ -119,7 +119,7 @@ namespace gl
static inline gl::render_target* as_rtt(gl::texture* t)
{
return reinterpret_cast<gl::render_target*>(t);
return verify(HERE, dynamic_cast<gl::render_target*>(t));
}
}

View file

@ -541,7 +541,7 @@ namespace vk
static inline vk::render_target* as_rtt(vk::image* t)
{
return static_cast<vk::render_target*>(t);
return verify(HERE, dynamic_cast<vk::render_target*>(t));
}
}