From 1517d66d4ed966613e6456dc8716a4aa7d489ee1 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Thu, 29 Nov 2018 19:03:38 -0800 Subject: [PATCH] GPU: Properly flip cull on simple triangle lists. Fixes #11601. --- GPU/Common/IndexGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/Common/IndexGenerator.cpp b/GPU/Common/IndexGenerator.cpp index 9c1b13d42db8..06bef591df11 100644 --- a/GPU/Common/IndexGenerator.cpp +++ b/GPU/Common/IndexGenerator.cpp @@ -218,7 +218,7 @@ void IndexGenerator::TranslateList(int numInds, const ITypeLE *inds, int indexOf indexOffset = index_ - indexOffset; // We only bother doing this minor optimization in triangle list, since it's by far the most // common operation that can benefit. - if (sizeof(ITypeLE) == sizeof(inds_[0]) && indexOffset == 0) { + if (sizeof(ITypeLE) == sizeof(inds_[0]) && indexOffset == 0 && clockwise) { memcpy(inds_, inds, numInds * sizeof(ITypeLE)); inds_ += numInds; count_ += numInds;