diff --git a/panda/src/pgui/pgFrameStyle.cxx b/panda/src/pgui/pgFrameStyle.cxx index 743940b011..82efa8be22 100644 --- a/panda/src/pgui/pgFrameStyle.cxx +++ b/panda/src/pgui/pgFrameStyle.cxx @@ -254,7 +254,7 @@ generate_flat_geom(const LVecBase4f &frame) { strip->add_next_vertices(4); strip->close_primitive(); - CPT(RenderState) state = RenderState::make(ColorAttrib::make_flat(_color)); + CPT(RenderState) state = RenderState::make(ColorAttrib::make_flat(_color), -1); PT(Geom) geom = new Geom(vdata); geom->add_primitive(strip); gnode->add_geom(geom, state);