diff --git a/example/Vulkan/TGATexture.cpp b/example/Vulkan/TGATexture.cpp index d47216da..5a19f4bf 100644 --- a/example/Vulkan/TGATexture.cpp +++ b/example/Vulkan/TGATexture.cpp @@ -54,6 +54,17 @@ namespace } } + void RGBtoRGBA(uint8 *tar,uint8 *src,uint size) + { + for(uint i=0;iCreateBuffer(VK_BUFFER_USAGE_TRANSFER_SRC_BIT,header.width*header.height*2); - RGB8to565((uint16 *)buf->Map(),pixel_data,header.width*header.height); + buf=device->CreateBuffer(VK_BUFFER_USAGE_TRANSFER_SRC_BIT,header.width*header.height*4); + RGBtoRGBA((uint8 *)buf->Map(),pixel_data,header.width*header.height); buf->Unmap(); - format=FMT_RGB565; + format=FMT_BGRA8UN; } else {