summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-17 11:06:46 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-17 11:06:46 +0100
commit9cf0ffe1fa5745d88e0e60ca2ed869866a03c22b (patch)
treecba9e868285de1679037d02f94047ba3c868be96
parent59dcf64dd6b8f5da570a551be7a317453e427098 (diff)
parent71ed83d301aca306957b18fdbb92f16a02d2c8cc (diff)
Merge pull request #71524 from clayjohn/MOBILE-TAA
Warn when trying to enable TAA from mobile or gl_compatibility backend
-rw-r--r--servers/rendering/renderer_viewport.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/rendering/renderer_viewport.cpp b/servers/rendering/renderer_viewport.cpp
index b82019dd9d..3886f5b379 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;