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