完成双贴图效果,修改闪退的bug,换成赴宴的贴图

This commit is contained in:
xsl
2025-10-23 21:58:11 +08:00
parent afd02550a8
commit 41a659bd6d
8 changed files with 15 additions and 13 deletions
+5 -2
View File
@@ -28,8 +28,11 @@ void ReceiveFacePoint(float* pos, int pointCount, int width, int height)
void TextureLoadProcessWithVulkan(uint8_t* data, int width, int height, int rowStride, size_t dataSize)
{
Texture& tex_bg = FaceApp::Get()->tex_bg;
FaceApp::Get()->processWithVulkan(data, width, height, rowStride, dataSize, tex_bg, false);
if(FaceApp::Get()->isInited())
{
Texture& tex_bg = FaceApp::Get()->tex_bg;
FaceApp::Get()->processWithVulkan(data, width, height, rowStride, dataSize, tex_bg, false);
}
}
bool FaceApp::LoadOBJ(const std::string& filename,