1
0
forked from 0ad/0ad

Fixes warning about unused captured variable in CDeviceCommandContext.

This was SVN commit r26749.
This commit is contained in:
Vladislav Belov 2022-04-02 20:40:40 +00:00
parent 4c17946717
commit e08590ee34

View File

@ -313,7 +313,7 @@ void CDeviceCommandContext::UploadBufferRegion(
// current Intel Windows GPU drivers (as of 2015-01) it's much faster if you do
// the explicit glBufferData.)
UploadBufferRegion(buffer, dataOffset, dataSize, [data, dataOffset, dataSize](u8* mappedData)
UploadBufferRegion(buffer, dataOffset, dataSize, [data, dataSize](u8* mappedData)
{
std::memcpy(mappedData, data, dataSize);
});