Skip to content

Commit

Permalink
Use GLuint rather than size_t to represent OpenGL indices.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gdlg committed Mar 1, 2018
1 parent 52da14d commit b68843b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simulation/include/pcl/simulation/model.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace pcl
};

typedef std::vector<Vertex> Vertices;
typedef std::vector<size_t> Indices;
typedef std::vector<GLuint> Indices;

class Model
{
Expand Down

0 comments on commit b68843b

Please sign in to comment.