Commit c9b8ce73 authored by Mark Yao's avatar Mark Yao Committed by Eric Anholt

glamor: spans: fixup wrong count on glDrawArrays

In commit 9e9fcf57 (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's avatarMark Yao <mark.yao@rock-chips.com>
Reviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
parent 2aca2dad
......@@ -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);
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment