xyz I just made a project with the minimal things, in the minimal project, the triangle displays. It now also displays in the original project.
The reason why it's suddenly working is because I changed
vertices.push_back(Vector3(0, 500, 0))
vertices.push_back(Vector3(500, 0, 0))
vertices.push_back(Vector3(0, 0, 500))
back to
vertices.push_back(Vector3(0, 1, 0))
vertices.push_back(Vector3(1, 0, 0))
vertices.push_back(Vector3(0, 0, 1))
Which is weird since I only changed it to 500 when it wouldn't display. Problem solved despite the code change only happening after it wouldn't work initially.