From edd51c3dfa3e9740bab0365da1b107c6178a9750 Mon Sep 17 00:00:00 2001 From: PixelyIon Date: Tue, 11 Jan 2022 20:24:33 +0530 Subject: [PATCH] Fix Color RT Disabling Bug Color RTs are disabled by setting their format as `None`, it was removed while transitioning to macros and resulted in a missing format exception. It has been readded as several applications depend on this behavior. --- app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h b/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h index 1eb1fc59..cd337a04 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h +++ b/app/src/main/cpp/skyline/gpu/interconnect/graphics_context.h @@ -193,6 +193,9 @@ namespace skyline::gpu::interconnect { #define FORMAT_SAME_NORM_INT_FLOAT_CASE(fmt) FORMAT_NORM_INT_FLOAT_CASE(fmt, fmt) switch (format) { + case maxwell3d::ColorRenderTarget::Format::None: + return {}; + FORMAT_SAME_NORM_INT_CASE(R8); FORMAT_SAME_NORM_INT_FLOAT_CASE(R16); FORMAT_SAME_NORM_INT_CASE(R8G8);