mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 06:51:26 +12:00
rsx: Runtime check on RTT cast
This commit is contained in:
parent
5c7bbb3354
commit
cb362b4085
2 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ namespace gl
|
||||||
|
|
||||||
static inline gl::render_target* as_rtt(gl::texture* t)
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -541,7 +541,7 @@ namespace vk
|
||||||
|
|
||||||
static inline vk::render_target* as_rtt(vk::image* t)
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue