Vulkan: Fix typo, bump shader cache version.

This commit is contained in:
Henrik Rydgard 2019-02-04 14:21:46 +01:00
parent 57e9073ae4
commit 128c0adc39
2 changed files with 2 additions and 2 deletions

View file

@ -245,7 +245,7 @@ static VulkanPipeline *CreateVulkanPipeline(VkDevice device, VkPipelineCache pip
attributeCount = SetupVertexAttribs(attrs, *decFmt); attributeCount = SetupVertexAttribs(attrs, *decFmt);
vertexStride = decFmt->stride; vertexStride = decFmt->stride;
} else { } else {
bool needsColor1 = vs->GetID().Bit(FS_BIT_LMODE); bool needsColor1 = vs->GetID().Bit(VS_BIT_LMODE);
attributeCount = SetupVertexAttribsPretransformed(attrs, needsColor1); attributeCount = SetupVertexAttribsPretransformed(attrs, needsColor1);
vertexStride = 36; vertexStride = 36;
} }

View file

@ -361,7 +361,7 @@ VulkanFragmentShader *ShaderManagerVulkan::GetFragmentShaderFromModule(VkShaderM
// instantaneous. // instantaneous.
#define CACHE_HEADER_MAGIC 0xff51f420 #define CACHE_HEADER_MAGIC 0xff51f420
#define CACHE_VERSION 15 #define CACHE_VERSION 16
struct VulkanCacheHeader { struct VulkanCacheHeader {
uint32_t magic; uint32_t magic;
uint32_t version; uint32_t version;