From 95fb0454153d0f17739d374567c8d29620cfdc0b Mon Sep 17 00:00:00 2001 From: v2v3v4 Date: Sun, 29 Sep 2024 18:00:20 +0300 Subject: [PATCH] This is not needed for shmap_phase --- src/Layers/xrRenderPC_R2/r2.h | 2 ++ src/Layers/xrRenderPC_R4/r4.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/Layers/xrRenderPC_R2/r2.h b/src/Layers/xrRenderPC_R2/r2.h index a9fa5549d1..8bbf236b4a 100644 --- a/src/Layers/xrRenderPC_R2/r2.h +++ b/src/Layers/xrRenderPC_R2/r2.h @@ -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()); @@ -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); diff --git a/src/Layers/xrRenderPC_R4/r4.h b/src/Layers/xrRenderPC_R4/r4.h index 49f221575f..7018b96459 100644 --- a/src/Layers/xrRenderPC_R4/r4.h +++ b/src/Layers/xrRenderPC_R4/r4.h @@ -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()); @@ -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);