nmwsharp / polyscope

A C++ & Python viewer for 3D data like meshes and point clouds
https://polyscope.run
MIT License
1.83k stars 203 forks source link

use `std::vector::data()` when setting GL data #300

Closed gkoulin closed 1 month ago

gkoulin commented 1 month ago

MSVC in Debug will throw "vector subscript out of range" error when calling std::vector::operator[] on empty vector. This will fail unit tests. Instead use std::vector::data() to retrieve data pointer.

nmwsharp commented 1 month ago

thank you!