gsk: Another vbo_size overflow fix

We can overflow vbo_size not just by batching
too much, but also by producing humongous text
nodes. Split them up.
This commit is contained in:
Matthias Clasen 2021-06-29 15:22:40 -04:00
parent 9ea162034a
commit f45c0b9609

View File

@ -2889,7 +2889,7 @@ gsk_ngl_render_job_visit_text_node (GskNglRenderJob *job,
if G_UNLIKELY (texture_id == 0)
continue;
if G_UNLIKELY (last_texture != texture_id)
if G_UNLIKELY (last_texture != texture_id || batch->draw.vbo_count + GSK_NGL_N_VERTICES > 0xffff)
{
if G_LIKELY (last_texture != 0)
{