mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
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:
@@ -256,7 +256,7 @@ glamor_glyphs_flush(CARD8 op, PicturePtr src, PicturePtr dst,
|
||||
if (glamor_glyph_use_130(glamor_priv))
|
||||
glDrawArraysInstanced(GL_TRIANGLE_STRIP, 0, 4, nglyph);
|
||||
else
|
||||
glamor_glDrawArrays_GL_QUADS(glamor_priv, nglyph * 4);
|
||||
glamor_glDrawArrays_GL_QUADS(glamor_priv, nglyph);
|
||||
}
|
||||
}
|
||||
if (prog->alpha != glamor_program_alpha_ca_first)
|
||||
|
||||
Reference in New Issue
Block a user