Replaced gli with libktx for 2D texture loading sample
This commit is contained in:
parent
1a6042e82d
commit
87042dc358
2 changed files with 36 additions and 21 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue