Skip to content

Commit b68843b

Browse files
committed
Use GLuint rather than size_t to represent OpenGL indices.
size_t size in byte is dependent on the machine architecture. In contrast, the OpenGL indices must be 32bits. Specifically size_t does not work on any 64bits machine.
1 parent 52da14d commit b68843b

File tree

1 file changed

+1
-1
lines changed
  • simulation/include/pcl/simulation

1 file changed

+1
-1
lines changed

simulation/include/pcl/simulation/model.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ namespace pcl
5858
};
5959

6060
typedef std::vector<Vertex> Vertices;
61-
typedef std::vector<size_t> Indices;
61+
typedef std::vector<GLuint> Indices;
6262

6363
class Model
6464
{

0 commit comments

Comments
 (0)