Skip to content

Commit

Permalink
rsx: Remember to min-max the anchor indices of a polygon or triangle fan
Browse files Browse the repository at this point in the history
  • Loading branch information
kd-11 committed Nov 24, 2019
1 parent 429a76a commit 8ca53f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpcs3/Emu/RSX/Common/BufferUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ namespace
if (is_primitive_restart_enabled && index == primitive_restart_index)
continue;

anchor = index;
anchor = min_max(min_index, max_index, index);
needs_anchor = false;
continue;
}
Expand All @@ -951,7 +951,7 @@ namespace
if (last_index == invalid_index)
{
//Need at least one anchor and one outer index to create a triangle
last_index = index;
last_index = min_max(min_index, max_index, index);
continue;
}

Expand Down

0 comments on commit 8ca53f9

Please sign in to comment.