Skip to content

Commit

Permalink
GPU: Properly flip cull on simple triangle lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Nov 30, 2018
1 parent 93bb96d commit 1517d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/Common/IndexGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1517d66

Please sign in to comment.