mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-03-26 04:18:36 -06:00
rsx: Runtime check on RTT cast
This commit is contained in:
parent
5c7bbb3354
commit
cb362b4085
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user