Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e519b37f authored by Jason Sams's avatar Jason Sams
Browse files

Fix an uninitialized pointer.

Change-Id: If66a502b6b23d00c4a2dd02fb46912f6dee2866b
parent 9823d203
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -44,6 +44,7 @@ void VertexArray::clearAll()
        mAttribs[ct].clear();
        mAttribs[ct].clear();
    }
    }
    mActiveBuffer = 0;
    mActiveBuffer = 0;
    mActivePointer = NULL;
    mCount = 0;
    mCount = 0;
}
}


@@ -55,6 +56,7 @@ VertexArray::Attrib::Attrib()
void VertexArray::Attrib::set(const Attrib &a)
void VertexArray::Attrib::set(const Attrib &a)
{
{
    buffer = a.buffer;
    buffer = a.buffer;
    ptr = a.ptr;
    offset = a.offset;
    offset = a.offset;
    type = a.type;
    type = a.type;
    size = a.size;
    size = a.size;
@@ -70,6 +72,7 @@ void VertexArray::Attrib::clear()
    type = 0;
    type = 0;
    size = 0;
    size = 0;
    stride = 0;
    stride = 0;
    ptr = NULL;
    normalized = false;
    normalized = false;
    name.setTo("");
    name.setTo("");
}
}