Changeset 1450


Ignore:
Timestamp:
Jun 9, 2012, 1:01:32 AM (8 years ago)
Author:
sam
Message:

gpu: disable all vertex attributes upon vertex declaration unbind, just
because we don't know yet how to disable them selectively.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gpu/vertexbuffer.cpp

    r1443 r1450  
    212212    /* FIXME: we need to unbind what we bound */
    213213    //glDisableVertexAttribArray(m_attrib);
     214    /* FIXME: temporary kludge */
     215    for (int i = 0; i < 12; i++)
     216        glDisableVertexAttribArray(i);
    214217    /* FIXME: only useful for VAOs */
    215218    //glBindBuffer(GL_ARRAY_BUFFER, 0);
Note: See TracChangeset for help on using the changeset viewer.