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>
This commit is contained in:
parent
2aca2dadda
commit
c9b8ce7392
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user