Permalink
Browse files

Fix bug where readback buffers would be created too small sometimes. …

…Should help #10098
  • Loading branch information...
hrydgard committed Nov 12, 2017
1 parent d4c345c commit 3dd08b84fe369c108c76ebf062f0feb520f00be0
Showing with 1 addition and 1 deletion.
  1. +1 −1 GPU/Vulkan/FramebufferVulkan.cpp
@@ -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;

0 comments on commit 3dd08b8

Please sign in to comment.