gl: Stub dynamic sample count when creating textures

This commit is contained in:
kd-11 2025-02-02 14:35:02 +03:00 committed by kd-11
parent 9a7b8e41eb
commit 808f67a3b2
10 changed files with 25 additions and 21 deletions

View file

@ -266,7 +266,7 @@ namespace gl
gl::texture* _dst = dst_image;
if (src_image->get_internal_format() != dst_image->get_internal_format() || slice.level != 0 || slice.dst_z != 0) [[ unlikely ]]
{
tmp = std::make_unique<texture>(GL_TEXTURE_2D, dst_rect.x2, dst_rect.y2, 1, 1, static_cast<GLenum>(slice.src->get_internal_format()));
tmp = std::make_unique<texture>(GL_TEXTURE_2D, dst_rect.x2, dst_rect.y2, 1, 1, 1, static_cast<GLenum>(slice.src->get_internal_format()));
_dst = tmp.get();
}