This is only used by immediate mode and the values are immutable.
Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3861>
if (p0->start + p0->count != p1->start)
return false;
- if (p0->basevertex != p1->basevertex ||
- p0->num_instances != p1->num_instances ||
- p0->base_instance != p1->base_instance)
- return false;
+ assert(p0->basevertex == p1->basevertex &&
+ p0->num_instances == p1->num_instances &&
+ p0->base_instance == p1->base_instance);
/* can always merge subsequent GL_POINTS primitives */
if (p0->mode == GL_POINTS)