瀏覽代碼

gpu: disable all vertex attributes upon vertex declaration unbind, just

because we don't know yet how to disable them selectively.
legacy
Sam Hocevar sam 12 年之前
父節點
當前提交
add39177c5
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      src/gpu/vertexbuffer.cpp

+ 3
- 0
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: */


Loading…
取消
儲存