summaryrefslogtreecommitdiffstats
path: root/src/world.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/world.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/world.cpp b/src/world.cpp
index ddd047a..03b30a8 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -872,7 +872,11 @@ bool sky_uses_hdr_shader() {
872 if (!is_sky_material(name, group)) 872 if (!is_sky_material(name, group))
873 continue; 873 continue;
874 const char *shader = vfunc<ShaderFn>(mat, 49)(mat); 874 const char *shader = vfunc<ShaderFn>(mat, 49)(mat);
875 if (shader && strcmp(shader, "sky") == 0) 875 // The shipped shader is registered as "Sky_HDR_DX9" (older SDK name
876 // "sky"); match both and stay case-insensitive about the prefix.
877 if (shader && (strstr(shader, "Sky_HDR") != nullptr ||
878 strstr(shader, "sky_hdr") != nullptr ||
879 strcmp(shader, "sky") == 0))
876 return true; 880 return true;
877 } 881 }
878 return false; 882 return false;