mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
draw: use clip_pos, not clip_vertex for the fake guardband xy point clipping
Seems obvious now this should use the data from position and not clip_vertex (albeit might not really make a difference). Reviewed-by: Brian Paul <brianp@vmware.com Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
8575ddb644
commit
1775400a20
1 changed files with 3 additions and 3 deletions
|
|
@ -681,9 +681,9 @@ clip_point_guard_xy(struct draw_stage *stage, struct prim_header *header)
|
|||
* automatically). These would usually be captured by depth clip
|
||||
* too but this can be disabled.
|
||||
*/
|
||||
if (header->v[0]->clip_vertex[3] <= 0.0f ||
|
||||
util_is_inf_or_nan(header->v[0]->clip_vertex[0]) ||
|
||||
util_is_inf_or_nan(header->v[0]->clip_vertex[1]))
|
||||
if (header->v[0]->clip_pos[3] <= 0.0f ||
|
||||
util_is_inf_or_nan(header->v[0]->clip_pos[0]) ||
|
||||
util_is_inf_or_nan(header->v[0]->clip_pos[1]))
|
||||
return;
|
||||
}
|
||||
stage->next->point(stage->next, header);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue