Skip to content

Commit 96044f5

Browse files
committed
Grass shadows removed for clean code
1 parent da3ff9d commit 96044f5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Layers/xrRender/DetailManager_VS.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -319,16 +319,11 @@ void CDetailManager::hw_Render_dump (ref_constant x_array, u32 var_id, u32 lod_
319319
RCache.stat.r.s_details.add (dwCNT_verts);
320320
}
321321
// Clean up
322-
// KD: we must not clear vis on r2 since we want details shadows
323-
#if RENDER!=R_R1
324-
if ((ps_r2_ls_flags.test(R2FLAG_SUN_DETAILS) && (RImplementation.PHASE_SMAP == RImplementation.phase)) // phase_smap
325-
|| (!ps_r2_ls_flags.test(R2FLAG_SUN_DETAILS) && (RImplementation.PHASE_NORMAL == RImplementation.phase))) // phase_normal
326-
#endif
327322
vis.clear_not_free ();
328323
}
329324
vOffset += hw_BatchSize * Object.number_vertices;
330325
iOffset += hw_BatchSize * Object.number_indices;
331326
}
332327
}
333328

334-
#endif // USE_DX10
329+
#endif // USE_DX10

0 commit comments

Comments
 (0)