gl: Clean up format bitcast checks and register D32F type for FORMAT_CLASS16F

- Also hides a dangerous export for vulkan, same as GL
This commit is contained in:
kd-11 2022-01-25 21:53:53 +03:00 committed by kd-11
parent 3fa45ff994
commit ffe00e8619
5 changed files with 19 additions and 6 deletions

View file

@ -145,8 +145,8 @@ namespace gl
if (!slice.src)
continue;
const bool typeless = dst_aspect != slice.src->aspect() ||
!formats_are_bitcast_compatible(static_cast<GLenum>(slice.src->get_internal_format()), static_cast<GLenum>(dst_image->get_internal_format()));
const bool typeless = !formats_are_bitcast_compatible(slice.src, dst_image);
ensure(typeless || dst_aspect == slice.src->aspect());
std::unique_ptr<gl::texture> tmp;
auto src_image = slice.src;