Source/ThirdParty/ANGLE/src/libGLESv2/Context.cpp
GLenum Context::applyIndexBuffer(const void *indices, GLsizei count, GLenum mode, GLenum type, TranslatedIndexData *indexInfo)
{
    IDirect3DDevice9 *device = getDevice();
    GLenum err = mIndexDataManager->prepareIndexData(type, count, mState.elementArrayBuffer.get(), indices, indexInfo);

    if (err == GL_NO_ERROR)
    {
        device->SetIndices(indexInfo->indexBuffer);
    }

    return err;
}
// Applies the indices and element array bindings to the Direct3D 9 device
Applies the indices and element array bindings to the Direct3D 9 device
Applies the indices and element array bindings to the Direct3D 9 device
GLenum Context::applyIndexBuffer(const void *indices, GLsizei count, GLenum mode, GLenum type, TranslatedIndexData *indexInfo)
{
    IDirect3DDevice9 *device = getDevice();
    GLenum err = mIndexDataManager->prepareIndexData(type, count, mState.elementArrayBuffer.get(), indices, indexInfo);
    if (err == GL_NO_ERROR)
    {
        device->SetIndices(indexInfo->indexBuffer);
    }
    return err;
}
GLenum Context :: applyIndexBuffer ( const void * indices , GLsizei count , GLenum mode , GLenum type , TranslatedIndexData * indexInfo ) { IDirect3DDevice9 * device = getDevice ( ) ; GLenum err = mIndexDataManager -> prepareIndexData ( type , count , mState . elementArrayBuffer . get ( ) , indices , indexInfo ) ; if ( err == GL_NO_ERROR ) { device -> SetIndices ( indexInfo -> indexBuffer ) ; } return err ; }
Applies the indices and element array bindings to the Direct3D 9 device
Applies the indices and element array bindings to the Direct3D 9 device