mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-22 10:21:39 +00:00
Fix Vulkan validation error.
This commit is contained in:
parent
ef82a8f2a7
commit
c3b9c8edef
1 changed files with 3 additions and 0 deletions
|
|
@ -5501,7 +5501,10 @@ static bool LoadTexture(GuestTexture& texture, const uint8_t* data, size_t dataS
|
|||
desc.flags = ddsDesc.type == ddspp::TextureType::Cubemap ? RenderTextureFlag::CUBE : RenderTextureFlag::NONE;
|
||||
|
||||
if (forceCubeMap)
|
||||
{
|
||||
desc.arraySize = 6;
|
||||
desc.flags = RenderTextureFlag::CUBE;
|
||||
}
|
||||
|
||||
texture.textureHolder = g_device->createTexture(desc);
|
||||
texture.texture = texture.textureHolder.get();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue