]> git.mxchange.org Git - simgear.git/commitdiff
Skip drawing clear cloud layers.
authordavid <david>
Fri, 17 May 2002 16:53:19 +0000 (16:53 +0000)
committerdavid <david>
Fri, 17 May 2002 16:53:19 +0000 (16:53 +0000)
simgear/sky/cloud.cxx

index 900935fc076c8e9de525768a33663cd581ee466e..4c37a17a96994351852dfa6617e388390960f694 100644 (file)
@@ -344,7 +344,8 @@ bool SGCloudLayer::reposition( sgVec3 p, sgVec3 up, double lon, double lat,
 
 
 void SGCloudLayer::draw() {
-    ssgCullAndDraw( layer_root );
+    if (layer_type != SG_CLOUD_CLEAR)
+      ssgCullAndDraw( layer_root );
 }