From add39177c5770a0e877584a3001f6fefc3ba84f0 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 8 Jun 2012 23:01:32 +0000 Subject: [PATCH] gpu: disable all vertex attributes upon vertex declaration unbind, just because we don't know yet how to disable them selectively. --- src/gpu/vertexbuffer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gpu/vertexbuffer.cpp b/src/gpu/vertexbuffer.cpp index 734193c6..203adf1d 100644 --- a/src/gpu/vertexbuffer.cpp +++ b/src/gpu/vertexbuffer.cpp @@ -211,6 +211,9 @@ void VertexDeclaration::Unbind() #else /* FIXME: we need to unbind what we bound */ //glDisableVertexAttribArray(m_attrib); + /* FIXME: temporary kludge */ + for (int i = 0; i < 12; i++) + glDisableVertexAttribArray(i); /* FIXME: only useful for VAOs */ //glBindBuffer(GL_ARRAY_BUFFER, 0); /* Or: */