Skip to content

Commit 0027705

Browse files
committed
Merge branch 'all-in-one-vs2022-wpo' into Scope-fix
2 parents 4fbf826 + 7067c03 commit 0027705

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Layers/xrRender/r__dsgraph_build.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,8 @@ void R_dsgraph_structure::r_dsgraph_insert_static(dxRender_Visual* pVisual)
361361
if (!pmask[sh->flags.iPriority / 2]) return;
362362

363363
// Water rendering
364-
if (sh->flags.isWater)
364+
#if RENDER==R_R4
365+
if (sh->flags.isWater && RImplementation.o.ssfx_water)
365366
{
366367
mapWater_Node* N = mapWater.insertInAnyWay(distSQ);
367368
N->val.ssa = SSA;
@@ -371,6 +372,7 @@ void R_dsgraph_structure::r_dsgraph_insert_static(dxRender_Visual* pVisual)
371372
N->val.se = sh;
372373
return;
373374
}
375+
#endif
374376

375377
// strict-sorting selection
376378
if (sh->flags.bStrictB2F)

0 commit comments

Comments
 (0)