Skip to content

Commit

Permalink
This is not needed for shmap_phase
Browse files Browse the repository at this point in the history
  • Loading branch information
v2v3v4 committed Sep 29, 2024
1 parent c50450e commit 95fb045
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Layers/xrRenderPC_R2/r2.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ class CRender : public R_dsgraph_structure

ICF void apply_object (IRenderable* O)
{
if(phase!=PHASE_NORMAL) return;
if (0==O) return;
if (0==O->renderable_ROS()) return;
CROS_impl& LT = *((CROS_impl*)O->renderable_ROS());
Expand All @@ -185,6 +186,7 @@ class CRender : public R_dsgraph_structure
}
IC void apply_lmaterial ()
{
if(phase!=PHASE_NORMAL) return;
R_constant* C = &*RCache.get_c (c_sbase); // get sampler
if (0==C) return;
VERIFY (RC_dest_sampler == C->destination);
Expand Down
2 changes: 2 additions & 0 deletions src/Layers/xrRenderPC_R4/r4.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ class CRender : public R_dsgraph_structure

ICF void apply_object (IRenderable* O)
{
if(phase!=PHASE_NORMAL) return;
if (0==O) return;
if (0==O->renderable_ROS()) return;
CROS_impl& LT = *((CROS_impl*)O->renderable_ROS());
Expand All @@ -189,6 +190,7 @@ class CRender : public R_dsgraph_structure
}
IC void apply_lmaterial ()
{
if(phase!=PHASE_NORMAL) return;
R_constant* C = &*RCache.get_c (c_sbase); // get sampler
if (0==C) return;
VERIFY (RC_dest_sampler == C->destination);
Expand Down

0 comments on commit 95fb045

Please sign in to comment.