mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +12:00
rsx: Remember to min-max the anchor indices of a polygon or triangle fan
This commit is contained in:
parent
429a76a140
commit
8ca53f9c84
1 changed files with 2 additions and 2 deletions
|
@ -936,7 +936,7 @@ namespace
|
||||||
if (is_primitive_restart_enabled && index == primitive_restart_index)
|
if (is_primitive_restart_enabled && index == primitive_restart_index)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
anchor = index;
|
anchor = min_max(min_index, max_index, index);
|
||||||
needs_anchor = false;
|
needs_anchor = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -951,7 +951,7 @@ namespace
|
||||||
if (last_index == invalid_index)
|
if (last_index == invalid_index)
|
||||||
{
|
{
|
||||||
//Need at least one anchor and one outer index to create a triangle
|
//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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue