David Rose 24 gadi atpakaļ
vecāks
revīzija
61d9c02595
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      panda/src/dxgsg/dxGraphicsStateGuardian.cxx

+ 3 - 0
panda/src/dxgsg/dxGraphicsStateGuardian.cxx

@@ -5023,6 +5023,9 @@ begin_decal(GeomNode *base_geom, AllAttributesWrapper &attrib) {
             // First turn off writing the depth buffer to render the base geometry.
             _d3dDevice->GetRenderState(D3DRENDERSTATE_ZWRITEENABLE, (DWORD *)&_depth_write_enabled);  //save cur val
             _d3dDevice->SetRenderState(D3DRENDERSTATE_ZWRITEENABLE, FALSE);
+            DepthWriteAttribute *dwa = new DepthWriteAttribute;
+            dwa->set_off();
+            attrib.set_attribute(DepthWriteTransition::get_class_type(), dwa);
 
             // Now render the base geometry.
             base_geom->draw(this);