summaryrefslogtreecommitdiff
path: root/glamor
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2015-06-19 19:04:16 -0700
committerEric Anholt <eric@anholt.net>2015-06-29 21:43:08 -0700
commit3d6dcad00d67bff407385ad37c7efde7b73ba719 (patch)
tree84e6070ac5767cdb9a0836d9f6a3c2801a883136 /glamor
parentb4061cf5f76241157b2dc81dec053012075311c0 (diff)
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>
Diffstat (limited to 'glamor')
-rw-r--r--glamor/glamor_composite_glyphs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glamor/glamor_composite_glyphs.c b/glamor/glamor_composite_glyphs.c
index 1f0d75ede..e92f1d916 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)