summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-01-07 17:34:05 +0100
committerGitHub <noreply@github.com>2019-01-07 17:34:05 +0100
commit37ac1bb57612c85484263b08b64ebe6e56196cbf (patch)
tree966943dd7e3ccc1d15a2648a3a300b412392b4d7
parentMerge pull request #1988 from lioncash/res (diff)
parentgl_rasterizer_cache: Use GL_STREAM_COPY for PBOs (diff)
downloadyuzu-37ac1bb57612c85484263b08b64ebe6e56196cbf.tar
yuzu-37ac1bb57612c85484263b08b64ebe6e56196cbf.tar.gz
yuzu-37ac1bb57612c85484263b08b64ebe6e56196cbf.tar.bz2
yuzu-37ac1bb57612c85484263b08b64ebe6e56196cbf.tar.lz
yuzu-37ac1bb57612c85484263b08b64ebe6e56196cbf.tar.xz
yuzu-37ac1bb57612c85484263b08b64ebe6e56196cbf.tar.zst
yuzu-37ac1bb57612c85484263b08b64ebe6e56196cbf.zip
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
index d3dcb9a46..bff0c65cd 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
@@ -452,7 +452,7 @@ static void CopySurface(const Surface& src_surface, const Surface& dst_surface,
const std::size_t buffer_size = std::max(src_params.size_in_bytes, dst_params.size_in_bytes);
glBindBuffer(GL_PIXEL_PACK_BUFFER, copy_pbo_handle);
- glBufferData(GL_PIXEL_PACK_BUFFER, buffer_size, nullptr, GL_STREAM_DRAW);
+ glBufferData(GL_PIXEL_PACK_BUFFER, buffer_size, nullptr, GL_STREAM_COPY);
if (source_format.compressed) {
glGetCompressedTextureImage(src_surface->Texture().handle, src_attachment,
static_cast<GLsizei>(src_params.size_in_bytes), nullptr);