From 38e24f53dafa0636493ac05a48b696bf45a55710 Mon Sep 17 00:00:00 2001 From: Sylvain Beucler Date: Sat, 21 Apr 2012 20:19:31 +0000 Subject: [PATCH] Eventually tracked down nasty Android bug git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1260 7f0cb862-5218-0410-a997-914c9d46530a --- src/fg_geometry.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fg_geometry.c b/src/fg_geometry.c index 7a446d9..26a30a5 100644 --- a/src/fg_geometry.c +++ b/src/fg_geometry.c @@ -236,6 +236,11 @@ static void fghDrawGeometrySolid20(GLfloat *vertices, GLfloat *normals, GLubyte fghBindBuffer(FGH_ELEMENT_ARRAY_BUFFER, ibo_elements); glDrawElements(GL_TRIANGLES, numVertIdxs, GL_UNSIGNED_BYTE, 0); } + + /* Clean existing bindings before clean-up */ + /* Android showed instability otherwise */ + fghBindBuffer(FGH_ARRAY_BUFFER, 0); + fghBindBuffer(FGH_ELEMENT_ARRAY_BUFFER, 0); if (vbo_coords != 0) fghDisableVertexAttribArray(attribute_v_coord); -- 1.7.10.4