diff options
author | Markus Wick <markus@selfnet.de> | 2014-03-18 09:42:53 +0100 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-03-26 12:58:40 -0700 |
commit | 7c4e1472966d9d3d6432621c3114f491a5378604 (patch) | |
tree | 13f47040e1649872294f582aa08413b8e45fca9d /glamor/glamor_gradient.c | |
parent | 82168b1e6ede48898be8a64b1c93b7d82ef65702 (diff) |
glamor: Always keep GL_ELEMENT_ARRAY_BUFFER bound to the same IB.
We never used glDrawElements() with a different index buffer.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'glamor/glamor_gradient.c')
-rw-r--r-- | glamor/glamor_gradient.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/glamor/glamor_gradient.c b/glamor/glamor_gradient.c index 38dac68d2..ce24d7310 100644 --- a/glamor/glamor_gradient.c +++ b/glamor/glamor_gradient.c @@ -1121,7 +1121,6 @@ glamor_generate_radial_gradient_picture(ScreenPtr screen, } glBindBuffer(GL_ARRAY_BUFFER, 0); - glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); glDisableVertexAttribArray(GLAMOR_VERTEX_POS); glDisableVertexAttribArray(GLAMOR_VERTEX_SOURCE); @@ -1142,7 +1141,6 @@ glamor_generate_radial_gradient_picture(ScreenPtr screen, } glBindBuffer(GL_ARRAY_BUFFER, 0); - glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); glDisableVertexAttribArray(GLAMOR_VERTEX_POS); glDisableVertexAttribArray(GLAMOR_VERTEX_SOURCE); @@ -1472,7 +1470,6 @@ glamor_generate_linear_gradient_picture(ScreenPtr screen, } glBindBuffer(GL_ARRAY_BUFFER, 0); - glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); glDisableVertexAttribArray(GLAMOR_VERTEX_POS); glDisableVertexAttribArray(GLAMOR_VERTEX_SOURCE); @@ -1493,7 +1490,6 @@ glamor_generate_linear_gradient_picture(ScreenPtr screen, } glBindBuffer(GL_ARRAY_BUFFER, 0); - glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); glDisableVertexAttribArray(GLAMOR_VERTEX_POS); glDisableVertexAttribArray(GLAMOR_VERTEX_SOURCE); |