From 6a317fbe156311c6141f7b5f73670827baea2861 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 16 Sep 2022 22:42:11 +0200 Subject: [PATCH] Fix build. --- scene/main/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 743f825b2..c80ee8a4b 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -2878,7 +2878,7 @@ String Viewport::get_configuration_warning() const { warning += TTR("The Viewport size must be greater than or equal to 2 pixels on both dimensions to render anything."); } - if (!VisualServer::get_singleton()->is_low_end() && hdr && (usage == USAGE_2D || usage == USAGE_2D_NO_SAMPLING)) { + if (!RenderingServer::get_singleton()->is_low_end() && hdr && (usage == USAGE_2D || usage == USAGE_2D_NO_SAMPLING)) { if (warning != String()) { warning += "\n\n"; }