Browse Source

Merge pull request #1990 from ReinUsesLisp/copy-surface-stream-copy

gl_rasterizer_cache: Use GL_STREAM_COPY for PBOs
pull/15/merge
bunnei 7 years ago
committed by GitHub
parent
commit
37ac1bb576
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/video_core/renderer_opengl/gl_rasterizer_cache.cpp

2
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);

Loading…
Cancel
Save