mirror of https://github.com/RPCS3/rpcs3.git
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:
parent
a6e6df1445
commit
555a4b5f5c
|
@ -505,7 +505,7 @@ namespace gl
|
||||||
if (!(*dst) || max_mem > static_cast<u64>(dst->size()))
|
if (!(*dst) || max_mem > static_cast<u64>(dst->size()))
|
||||||
{
|
{
|
||||||
if (*dst) dst->remove();
|
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);
|
if (auto as_vi = dynamic_cast<const gl::viewable_image*>(src);
|
||||||
|
|
Loading…
Reference in New Issue