Fix #130903: Overlay-Next: Crash using asan in Relation drawing

The cast `float4(float3&)` is invalid and was casted to
`float4(float *)` which read past the end of the vector.
This commit is contained in:
Clément Foucault
2024-11-25 15:32:56 +01:00
parent 69f94df026
commit e42416d067

View File

@@ -766,7 +766,7 @@ struct VertexPrimitiveBuf {
void append(const float3 &position, const float4 &color)
{
data_buf.append({float4(position), color});
data_buf.append({float4(position, 0.0f), color});
}
void end_sync(PassSimple::Sub &pass, GPUPrimType primitive)