From 5f388b6b64aff103602e8077b72ef2f5f40021cd Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 21 May 2017 23:34:48 +0200 Subject: [PATCH] Vulkan: Use suboptimal clears instead of no clears in buffered --- GPU/Vulkan/FramebufferVulkan.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GPU/Vulkan/FramebufferVulkan.cpp b/GPU/Vulkan/FramebufferVulkan.cpp index 0a1e55cb04..7acb3d8a09 100644 --- a/GPU/Vulkan/FramebufferVulkan.cpp +++ b/GPU/Vulkan/FramebufferVulkan.cpp @@ -173,7 +173,7 @@ void FramebufferManagerVulkan::DestroyDeviceObjects() { } void FramebufferManagerVulkan::NotifyClear(bool clearColor, bool clearAlpha, bool clearDepth, uint32_t color, float depth) { - if (!useBufferedRendering_) { + // if (!useBufferedRendering_) { float x, y, w, h; CenterDisplayOutputRect(&x, &y, &w, &h, 480.0f, 272.0f, (float)pixelWidth_, (float)pixelHeight_, ROTATION_LOCKED_HORIZONTAL); @@ -192,9 +192,9 @@ void FramebufferManagerVulkan::NotifyClear(bool clearColor, bool clearAlpha, boo if (clearDepth) { SetDepthUpdated(); } - } else { + //} else { // TODO: Clever render pass magic. - } + //} } void FramebufferManagerVulkan::DoNotifyDraw() {