Skip to content

Commit

Permalink
Fix bug where readback buffers would be created too small sometimes. …
Browse files Browse the repository at this point in the history
…Should help #10098
  • Loading branch information
hrydgard committed Nov 12, 2017
1 parent d4c345c commit 3dd08b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/Vulkan/FramebufferVulkan.cpp
Expand Up @@ -467,7 +467,7 @@ VkImageView FramebufferManagerVulkan::BindFramebufferAsColorTexture(int stage, V
bool FramebufferManagerVulkan::CreateDownloadTempBuffer(VirtualFramebuffer *nvfb) {
nvfb->colorDepth = Draw::FBO_8888;

nvfb->fbo = draw_->CreateFramebuffer({ nvfb->width, nvfb->height, 1, 1, true, (Draw::FBColorDepth)nvfb->colorDepth });
nvfb->fbo = draw_->CreateFramebuffer({ nvfb->bufferWidth, nvfb->height, 1, 1, true, (Draw::FBColorDepth)nvfb->colorDepth });
if (!(nvfb->fbo)) {
ERROR_LOG(FRAMEBUF, "Error creating FBO! %i x %i", nvfb->renderWidth, nvfb->renderHeight);
return false;
Expand Down

0 comments on commit 3dd08b8

Please sign in to comment.