void GL2Encoder::getBufferIndexRange(BufferData* buf,
const void* dataWithOffset,
GLenum type,
- GLsizei count,
- GLintptr offset,
+ size_t count,
+ size_t offset,
int* minIndex_out,
int* maxIndex_out) {
if (buf->m_indexRangeCache.findRange(
- type, (size_t)offset, count,
+ type, offset, count,
m_primitiveRestartEnabled,
minIndex_out,
maxIndex_out)) {
calcIndexRange(dataWithOffset, type, count, minIndex_out, maxIndex_out);
buf->m_indexRangeCache.addRange(
- type, (size_t)offset, count, m_primitiveRestartEnabled,
+ type, offset, count, m_primitiveRestartEnabled,
*minIndex_out, *maxIndex_out);
}
ctx->getBufferIndexRange(buf,
indices,
type,
- (GLsizei)count,
- (GLintptr)indices, // offset, really
+ (size_t)count,
+ (size_t)offset,
&minIndex, &maxIndex);
} else {
// In this case, the |indices| field holds a real
GLenum type, GLsizei count,
int minIndex);
void getBufferIndexRange(BufferData* buf, const void* dataWithOffset,
- GLenum type, GLsizei count, GLintptr offset,
+ GLenum type, size_t count, size_t offset,
int* minIndex_out, int* maxIndex_out);
void getVBOUsage(bool* hasClientArrays, bool* hasVBOs) const;
void sendVertexAttributes(GLint first, GLsizei count, bool hasClientArrays);