gl: Suggest readback buffer as ssbo if it is not provided

- We're likely to jump into a compute or readback pass anyway.
This commit is contained in:
kd-11 2022-06-01 22:11:52 +03:00 committed by kd-11
parent a6e6df1445
commit 555a4b5f5c
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,7 @@ namespace gl
if (!(*dst) || max_mem > static_cast<u64>(dst->size()))
{
if (*dst) dst->remove();
dst->create(buffer::target::pixel_pack, max_mem, nullptr, buffer::memory_type::local, GL_STATIC_COPY);
dst->create(buffer::target::ssbo, max_mem, nullptr, buffer::memory_type::local, GL_STATIC_COPY);
}
if (auto as_vi = dynamic_cast<const gl::viewable_image*>(src);