diff --git a/panda/src/pgui/pgFrameStyle.cxx b/panda/src/pgui/pgFrameStyle.cxx index 0c36205748..7feb1f890c 100644 --- a/panda/src/pgui/pgFrameStyle.cxx +++ b/panda/src/pgui/pgFrameStyle.cxx @@ -192,11 +192,17 @@ generate_flat_geom(const LVecBase4f &frame) { ("PGFrame", format, qpGeomUsageHint::UH_static); qpGeomVertexWriter vertex(vdata, InternalName::get_vertex()); + qpGeomVertexWriter color(vdata, InternalName::get_color()); vertex.add_data3f(left, 0.0f, top); vertex.add_data3f(left, 0.0f, bottom); vertex.add_data3f(right, 0.0f, top); vertex.add_data3f(right, 0.0f, bottom); + color.add_data4f(_color); + color.add_data4f(_color); + color.add_data4f(_color); + color.add_data4f(_color); + if (has_texture()) { // Generate UV's. left = uv_range[0];