From a0907ab7bb41f62a263727f952e45f36fa37562f Mon Sep 17 00:00:00 2001 From: xebra Date: Thu, 2 Mar 2017 21:32:01 +0900 Subject: [PATCH] [spline/bezier]Fix shared uniform a bit. --- GPU/Common/ShaderUniforms.cpp | 2 +- GPU/Vulkan/GPU_Vulkan.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GPU/Common/ShaderUniforms.cpp b/GPU/Common/ShaderUniforms.cpp index ac360e7a6b..9c76b106db 100644 --- a/GPU/Common/ShaderUniforms.cpp +++ b/GPU/Common/ShaderUniforms.cpp @@ -189,7 +189,7 @@ void BaseUpdateUniforms(UB_VS_FS_Base *ub, uint64_t dirtyUniforms, bool flipView if (gstate_c.bezier) { if (dirtyUniforms & DIRTY_BEZIERCOUNTU) - ub->spline_count_u = gstate_c.bezier_count_u; + ub->spline_count_u = gstate_c.spline_count_u; } else if (gstate_c.spline) { if (dirtyUniforms & DIRTY_SPLINECOUNTU) ub->spline_count_u = gstate_c.spline_count_u; diff --git a/GPU/Vulkan/GPU_Vulkan.cpp b/GPU/Vulkan/GPU_Vulkan.cpp index 98bc877935..9f08dfbbb4 100644 --- a/GPU/Vulkan/GPU_Vulkan.cpp +++ b/GPU/Vulkan/GPU_Vulkan.cpp @@ -879,9 +879,9 @@ void GPU_Vulkan::Execute_Bezier(u32 op, u32 diff) { if (g_Config.bHardwareTessellation && g_Config.bHardwareTransform && !g_Config.bSoftwareRendering) { gstate_c.bezier = true; - if (gstate_c.bezier_count_u != bz_ucount) { + if (gstate_c.spline_count_u != bz_ucount) { gstate_c.Dirty(DIRTY_BEZIERCOUNTU); - gstate_c.bezier_count_u = bz_ucount; + gstate_c.spline_count_u = bz_ucount; } }