|
|
|
@ -13029,14 +13029,14 @@ bool ImGui::SetDragDropPayload(const char* type, const void* data, size_t data_s
|
|
|
|
|
// Store in heap
|
|
|
|
|
g.DragDropPayloadBufHeap.resize((int)data_size);
|
|
|
|
|
payload.Data = g.DragDropPayloadBufHeap.Data;
|
|
|
|
|
memcpy((void*)(intptr_t)payload.Data, data, data_size);
|
|
|
|
|
memcpy(payload.Data, data, data_size);
|
|
|
|
|
}
|
|
|
|
|
else if (data_size > 0)
|
|
|
|
|
{
|
|
|
|
|
// Store locally
|
|
|
|
|
memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal));
|
|
|
|
|
payload.Data = g.DragDropPayloadBufLocal;
|
|
|
|
|
memcpy((void*)(intptr_t)payload.Data, data, data_size);
|
|
|
|
|
memcpy(payload.Data, data, data_size);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|