Skip to content

Commit

Permalink
fix no shadow scene error for v3.3.1 (#3879)
Browse files Browse the repository at this point in the history
  • Loading branch information
troublemaker52025 committed Sep 10, 2021
1 parent cbaa953 commit cc9f23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/cocos/renderer/pipeline/shadow/ShadowFlow.cpp
Expand Up @@ -69,7 +69,7 @@ void ShadowFlow::render(scene::Camera *camera) {

lightCollecting(camera, &_validLights);

if (sceneData->getShadowObjects().empty()) {
if (sceneData->getShadowObjects().empty() && sceneData->getRenderObjects().empty()) {
clearShadowMap(camera);
return;
}
Expand Down

0 comments on commit cc9f23c

Please sign in to comment.