From 71ed83d301aca306957b18fdbb92f16a02d2c8cc Mon Sep 17 00:00:00 2001 From: clayjohn Date: Mon, 16 Jan 2023 10:38:37 -0800 Subject: [PATCH] Warn when trying to enable TAA from mobile or gl_compatibility backend TAA should only be enabled from the forward_plus renderer for now --- servers/rendering/renderer_viewport.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/rendering/renderer_viewport.cpp b/servers/rendering/renderer_viewport.cpp index b82019dd9db..3886f5b3797 100644 --- a/servers/rendering/renderer_viewport.cpp +++ b/servers/rendering/renderer_viewport.cpp @@ -1138,6 +1138,7 @@ void RendererViewport::viewport_set_screen_space_aa(RID p_viewport, RS::Viewport void RendererViewport::viewport_set_use_taa(RID p_viewport, bool p_use_taa) { Viewport *viewport = viewport_owner.get_or_null(p_viewport); ERR_FAIL_COND(!viewport); + ERR_FAIL_COND_EDMSG(OS::get_singleton()->get_current_rendering_method() != "forward_plus", "TAA is only available when using the Forward+ renderer."); if (viewport->use_taa == p_use_taa) { return;