Further steps towards Vulkan framebuffer support

This commit is contained in:
Henrik Rydgard 2017-05-17 02:21:03 +02:00 committed by Henrik Rydgård
parent 273c266b78
commit 32728553bd
5 changed files with 91 additions and 29 deletions

View file

@ -939,6 +939,7 @@ void FramebufferManagerCommon::CopyDisplayToOutput() {
float v1 = (272.0f + offsetY) / (float)vfb->bufferHeight;
if (!usePostShader_) {
draw_->TransitionForSampling(vfb->fbo); // Temporary vulkan hack
draw_->BindFramebufferAsRenderTarget(nullptr, { Draw::RPAction::CLEAR, Draw::RPAction::CLEAR });
draw_->BindFramebufferAsTexture(vfb->fbo, 0, Draw::FB_COLOR_BIT, 0);
bool linearFilter = g_Config.iBufFilter == SCALE_LINEAR;