gl: Fix data pointer on the optimized AMD path

This commit is contained in:
kd-11 2022-06-03 00:28:47 +03:00 committed by kd-11
parent bb05de2e80
commit b8b0ecabd8
1 changed files with 2 additions and 2 deletions

View File

@ -503,13 +503,13 @@ namespace gl
{ {
case gl::texture::internal_format::depth24_stencil8: case gl::texture::internal_format::depth24_stencil8:
gl::get_compute_task<gl::cs_d24x8_to_ssbo>()->run(cmd, gl::get_compute_task<gl::cs_d24x8_to_ssbo>()->run(cmd,
const_cast<gl::viewable_image*>(as_vi), dst, 0, const_cast<gl::viewable_image*>(as_vi), dst, dst_offset,
{ {src_region.x, src_region.y}, {src_region.width, src_region.height} }, { {src_region.x, src_region.y}, {src_region.width, src_region.height} },
pack_info, {}); pack_info, {});
return; return;
case gl::texture::internal_format::rgba8: case gl::texture::internal_format::rgba8:
gl::get_compute_task<gl::cs_rgba8_to_ssbo>()->run(cmd, gl::get_compute_task<gl::cs_rgba8_to_ssbo>()->run(cmd,
const_cast<gl::viewable_image*>(as_vi), dst, 0, const_cast<gl::viewable_image*>(as_vi), dst, dst_offset,
{ {src_region.x, src_region.y}, {src_region.width, src_region.height} }, { {src_region.x, src_region.y}, {src_region.width, src_region.height} },
pack_info, {}); pack_info, {});
return; return;