[PATCH] glamor: spans: fixup wrong count on glDrawArrays

Mark Yao mark.yao at rock-chips.com
Fri Sep 30 08:42:35 UTC 2016


since commit (9e9fcf5 glamor: Add a helper function for the common
GL_QUADS fallback pattern.), the glDrawArrays count change to nbox,
That is wrong, I think it maybe cause by fat finger.

Signed-off-by: Mark Yao <mark.yao at rock-chips.com>
---
 glamor/glamor_spans.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/glamor/glamor_spans.c b/glamor/glamor_spans.c
index 8ed29a4..4280c14 100644
--- a/glamor/glamor_spans.c
+++ b/glamor/glamor_spans.c
@@ -134,7 +134,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);
             }
         }
     }
-- 
1.9.1




More information about the xorg-devel mailing list