This resolves a false UBSan trip caused by treating the element offset in glDrawElements as a pointer
This parameter is effectively an offset but is taken as a void*. By not storing the offset as a pointer, UBSan no longer tools the offset to check for null pointer overflow.
OpenGL has a tendency to take offsets which are applied on the GPU as pointers, but they are just offsets so it's perfectly fine to do this.
Addressing #516
This resolves a false UBSan trip caused by treating the element offset in
glDrawElements
as a pointer This parameter is effectively an offset but is taken as avoid*
. By not storing the offset as a pointer, UBSan no longer tools the offset to check for null pointer overflow.OpenGL has a tendency to take offsets which are applied on the GPU as pointers, but they are just offsets so it's perfectly fine to do this.