[PATCH 1/7] glamor: Fix text rendering on GLES2.

Eric Anholt eric at anholt.net
Fri Jun 19 19:09:35 PDT 2015


The GL_QUADS helper takes a number of quads, not a number of vertices.
---
 glamor/glamor_composite_glyphs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/glamor/glamor_composite_glyphs.c b/glamor/glamor_composite_glyphs.c
index 1f0d75e..e92f1d9 100644
--- a/glamor/glamor_composite_glyphs.c
+++ b/glamor/glamor_composite_glyphs.c
@@ -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)
-- 
2.1.4



More information about the xorg-devel mailing list