From c9b8ce73927a43ed82b267d1c1985445f24827cc Mon Sep 17 00:00:00 2001 From: Mark Yao Date: Fri, 30 Sep 2016 16:42:35 +0800 Subject: glamor: spans: fixup wrong count on glDrawArrays In commit 9e9fcf5 (glamor: Add a helper function for the common GL_QUADS fallback pattern.), the glDrawArrays count change was accidentally changed to nbox. Fixes xlogo with MESA_GL_VERSION_OVERRIDE=2.1 and MESA_GLSL_VERSION_OVERRIDE=120 Signed-off-by: Mark Yao Reviewed-by: Eric Anholt --- glamor/glamor_spans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glamor') diff --git a/glamor/glamor_spans.c b/glamor/glamor_spans.c index 5217d0434..9a2aecd9d 100644 --- a/glamor/glamor_spans.c +++ b/glamor/glamor_spans.c @@ -135,7 +135,7 @@ glamor_fill_spans_gl(DrawablePtr drawable, if (glamor_priv->glsl_version >= 130) glDrawArraysInstanced(GL_TRIANGLE_STRIP, 0, 4, n); else { - glamor_glDrawArrays_GL_QUADS(glamor_priv, nbox); + glamor_glDrawArrays_GL_QUADS(glamor_priv, n); } } } -- cgit v1.2.3