use GLsizei to avoid overflow (#16962)

This commit is contained in:
minggo 2016-12-07 15:05:56 +08:00 committed by Ricardo Quesada
parent fb89672fff
commit b288821bdd
1 changed files with 2 additions and 2 deletions

View File

@ -249,8 +249,8 @@ protected:
// Internal structure that has the information for the batches
struct TriBatchToDraw {
TrianglesCommand* cmd; // needed for the Material
GLushort indicesToDraw;
GLushort offset;
GLsizei indicesToDraw;
GLsizei offset;
};
// capacity of the array of TriBatches
int _triBatchesToDrawCapacity;