This commit is contained in:
xebra committed 2017-03-24 00:02:18 +09:00
1 parent e6af91f1b0
commit f4737cc1fa
1 file changed
+4 -1
+4 -1
View File
@@ -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));