rsx: Runtime check on RTT cast
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user