fix VKTextureLoader.cpp bugs
This commit is contained in:
parent
488f16483c
commit
ce97dbf076
@ -107,12 +107,12 @@ namespace
|
||||
|
||||
void *OnBegin(uint32 total_bytes) override
|
||||
{
|
||||
const VkFormat format=GetVulkanFormat(file_header);
|
||||
format=GetVulkanFormat(file_header);
|
||||
|
||||
if(!CheckVulkanFormat(format))
|
||||
return(nullptr);
|
||||
|
||||
vulkan::Buffer *buf=device->CreateBuffer(VK_BUFFER_USAGE_TRANSFER_SRC_BIT,total_bytes);
|
||||
buf=device->CreateBuffer(VK_BUFFER_USAGE_TRANSFER_SRC_BIT,total_bytes);
|
||||
|
||||
if(!buf)
|
||||
return(nullptr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user