Properly initialise parent variable structure
Make sure glGetBufferSubData call doesn't overrun buffer size