From 97123e3faf9bf07e4c86786922d8a9b2ee2a910f Mon Sep 17 00:00:00 2001 From: Shahbaz Youssefi Date: Mon, 8 Jul 2019 15:11:16 -0400 Subject: [PATCH] Vulkan: Fix support for framebuffer discard extension Bug: angleproject:3664 Change-Id: Ifc08a53771c1e114c4169780e7fc984f2552b263 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1688182 Reviewed-by: Michael Spang Commit-Queue: Shahbaz Youssefi --- src/libANGLE/renderer/vulkan/FramebufferVk.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libANGLE/renderer/vulkan/FramebufferVk.cpp b/src/libANGLE/renderer/vulkan/FramebufferVk.cpp index fed8f5237..7aeb3efae 100644 --- a/src/libANGLE/renderer/vulkan/FramebufferVk.cpp +++ b/src/libANGLE/renderer/vulkan/FramebufferVk.cpp @@ -182,8 +182,7 @@ angle::Result FramebufferVk::discard(const gl::Context *context, size_t count, const GLenum *attachments) { - ANGLE_VK_UNREACHABLE(vk::GetImpl(context)); - return angle::Result::Stop; + return invalidate(context, count, attachments); } angle::Result FramebufferVk::invalidate(const gl::Context *context,