From 07bc037830e8520b0b622a3cf1a27eee1a1cf1bf Mon Sep 17 00:00:00 2001 From: Xottab-DUTY Date: Thu, 27 Apr 2023 03:53:18 +0300 Subject: [PATCH] Don't try to render clouds if we don't have shader for them --- src/Layers/xrRender/dxEnvironmentRender.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Layers/xrRender/dxEnvironmentRender.cpp b/src/Layers/xrRender/dxEnvironmentRender.cpp index a3ae7bf0455..ed44a95c5d2 100644 --- a/src/Layers/xrRender/dxEnvironmentRender.cpp +++ b/src/Layers/xrRender/dxEnvironmentRender.cpp @@ -275,6 +275,9 @@ void dxEnvironmentRender::RenderSky(CEnvironment& env) void dxEnvironmentRender::RenderClouds(CEnvironment& env) { + if (!clouds_sh) + return; + GEnv.Render->rmFar(); Fmatrix mXFORM, mScale;