Replaced gli with libktx for 2D texture loading sample

This commit is contained in:
Sascha Willems 2019-08-03 09:46:41 +02:00
parent 1a6042e82d
commit 87042dc358
2 changed files with 36 additions and 21 deletions

View file

@ -320,7 +320,7 @@ namespace vks
VK_CHECK_RESULT(vkMapMemory(device->logicalDevice, mappableMemory, 0, memReqs.size, 0, &data));
// Copy image data into memory
memcpy(data, ktxTextureData, ktxTextureSize);
memcpy(data, ktxTextureData, memReqs.size);
vkUnmapMemory(device->logicalDevice, mappableMemory);