浏览代码

Merge pull request #65063 from Atlinx/fix/65033_fix-hdr-warning

Disable HDR warning for Viewport on GLES2 projects
Rémi Verschelde 3 年之前
父节点
当前提交
c551a79084
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/main/viewport.cpp

+ 1 - 1
scene/main/viewport.cpp

@@ -3031,7 +3031,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 (hdr && (usage == USAGE_2D || usage == USAGE_2D_NO_SAMPLING)) {
+	if (!VisualServer::get_singleton()->is_low_end() && hdr && (usage == USAGE_2D || usage == USAGE_2D_NO_SAMPLING)) {
 		if (warning != String()) {
 			warning += "\n\n";
 		}