From 128c0adc3918914935d2e03c95cc46edd85d963d Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Mon, 4 Feb 2019 14:21:46 +0100 Subject: [PATCH] Vulkan: Fix typo, bump shader cache version. --- GPU/Vulkan/PipelineManagerVulkan.cpp | 2 +- GPU/Vulkan/ShaderManagerVulkan.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GPU/Vulkan/PipelineManagerVulkan.cpp b/GPU/Vulkan/PipelineManagerVulkan.cpp index 6141c87b11..dbb04144a2 100644 --- a/GPU/Vulkan/PipelineManagerVulkan.cpp +++ b/GPU/Vulkan/PipelineManagerVulkan.cpp @@ -245,7 +245,7 @@ static VulkanPipeline *CreateVulkanPipeline(VkDevice device, VkPipelineCache pip attributeCount = SetupVertexAttribs(attrs, *decFmt); vertexStride = decFmt->stride; } else { - bool needsColor1 = vs->GetID().Bit(FS_BIT_LMODE); + bool needsColor1 = vs->GetID().Bit(VS_BIT_LMODE); attributeCount = SetupVertexAttribsPretransformed(attrs, needsColor1); vertexStride = 36; } diff --git a/GPU/Vulkan/ShaderManagerVulkan.cpp b/GPU/Vulkan/ShaderManagerVulkan.cpp index 10675fd5e1..1032ffffe8 100644 --- a/GPU/Vulkan/ShaderManagerVulkan.cpp +++ b/GPU/Vulkan/ShaderManagerVulkan.cpp @@ -361,7 +361,7 @@ VulkanFragmentShader *ShaderManagerVulkan::GetFragmentShaderFromModule(VkShaderM // instantaneous. #define CACHE_HEADER_MAGIC 0xff51f420 -#define CACHE_VERSION 15 +#define CACHE_VERSION 16 struct VulkanCacheHeader { uint32_t magic; uint32_t version;