summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Yao <mark.yao@rock-chips.com>2016-09-30 16:42:35 +0800
committerEric Anholt <eric@anholt.net>2016-09-30 08:46:03 -0700
commitc9b8ce73927a43ed82b267d1c1985445f24827cc (patch)
tree717a1cddb0f577b257d70458e893b242e1727c26
parent2aca2dadda4cc9c378049457885d33a4eede9768 (diff)
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 <mark.yao@rock-chips.com> Reviewed-by: Eric Anholt <eric@anholt.net>
-rw-r--r--glamor/glamor_spans.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}
}