summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2023-01-16 10:38:37 -0800
committerclayjohn <claynjohn@gmail.com>2023-01-16 13:32:40 -0800
commit71ed83d301aca306957b18fdbb92f16a02d2c8cc (patch)
tree1dd369d63aa73b13af50914c88a74086336c331f /servers
parent629796c333bcc46f2aeb4399c1a5786d6b013289 (diff)
Warn when trying to enable TAA from mobile or gl_compatibility backend
TAA should only be enabled from the forward_plus renderer for now
Diffstat (limited to 'servers')
-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;