glamor: Fix text rendering on GLES2.
The GL_QUADS helper takes a number of quads, not a number of vertices. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
b4061cf5f7
commit
3d6dcad00d
|
@ -256,7 +256,7 @@ glamor_glyphs_flush(CARD8 op, PicturePtr src, PicturePtr dst,
|
||||||
if (glamor_glyph_use_130(glamor_priv))
|
if (glamor_glyph_use_130(glamor_priv))
|
||||||
glDrawArraysInstanced(GL_TRIANGLE_STRIP, 0, 4, nglyph);
|
glDrawArraysInstanced(GL_TRIANGLE_STRIP, 0, 4, nglyph);
|
||||||
else
|
else
|
||||||
glamor_glDrawArrays_GL_QUADS(glamor_priv, nglyph * 4);
|
glamor_glDrawArrays_GL_QUADS(glamor_priv, nglyph);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (prog->alpha != glamor_program_alpha_ca_first)
|
if (prog->alpha != glamor_program_alpha_ca_first)
|
||||||
|
|
Loading…
Reference in New Issue