From f4737cc1faf0dc8783b5eaf55b27fcf55d8e00ff Mon Sep 17 00:00:00 2001 From: xebra Date: Fri, 24 Mar 2017 00:02:18 +0900 Subject: [PATCH] Fix f14b7549. --- GPU/Common/SplineCommon.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GPU/Common/SplineCommon.cpp b/GPU/Common/SplineCommon.cpp index ea5b3fd121..aaf1342c48 100644 --- a/GPU/Common/SplineCommon.cpp +++ b/GPU/Common/SplineCommon.cpp @@ -933,6 +933,8 @@ void DrawEngineCommon::SubmitSpline(const void *control_points, const void *indi const bool hasColor = (origVertType & GE_VTYPE_COL_MASK) != 0; const bool hasTexCoords = (origVertType & GE_VTYPE_TC_MASK) != 0; + if (g_Config.iGPUBackend == GPU_BACKEND_VULKAN) + tessDataTransfer->PrepareBuffers(pos, tex, col, count_u * count_v, hasColor, hasTexCoords); for (int idx = 0; idx < count_u * count_v; idx++) { memcpy(pos + idx * stride, points[idx]->pos.AsArray(), 3 * sizeof(float)); if (hasTexCoords) @@ -1021,7 +1023,8 @@ void DrawEngineCommon::SubmitBezier(const void *control_points, const void *indi int num_patches_v = (count_v - 1) / 3; BezierPatch *patches = nullptr; if (g_Config.bHardwareTessellation && g_Config.bHardwareTransform && !g_Config.bSoftwareRendering) { - tessDataTransfer->PrepareBuffers(pos, tex, col, count_u * count_v, hasColor, hasTexCoords); + if (g_Config.iGPUBackend == GPU_BACKEND_VULKAN) + tessDataTransfer->PrepareBuffers(pos, tex, col, count_u * count_v, hasColor, hasTexCoords); for (int idx = 0; idx < count_u * count_v; idx++) { SimpleVertex *point = simplified_control_points + (indices ? idxConv.convert(idx) : idx); memcpy(pos + idx * stride, point->pos.AsArray(), 3 * sizeof(float));