summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/main/draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/draw.c b/src/mesa/main/draw.c
index 98948a616f1..bfa318553f6 100644
--- a/src/mesa/main/draw.c
+++ b/src/mesa/main/draw.c
@@ -1640,7 +1640,7 @@ _mesa_exec_DrawElementsIndirect(GLenum mode, GLenum type, const GLvoid *indirect
/* Convert offset to pointer */
void *offset = (void *)
- ((cmd->firstIndex * _mesa_sizeof_type(type)) & 0xffffffffUL);
+ (uintptr_t)((cmd->firstIndex * _mesa_sizeof_type(type)) & 0xffffffffUL);
_mesa_exec_DrawElementsInstancedBaseVertexBaseInstance(mode, cmd->count,
type, offset,