mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
Fix reporting of clipped vertices.
This commit is contained in:
parent
22cbf6a704
commit
500c41b8ba
1 changed files with 2 additions and 3 deletions
|
|
@ -94,7 +94,7 @@ static boolean post_vs_cliptest_viewport_gl( struct pt_post_vs *pvs,
|
|||
struct vertex_header *out = vertices;
|
||||
const float *scale = pvs->draw->viewport.scale;
|
||||
const float *trans = pvs->draw->viewport.translate;
|
||||
boolean clipped = FALSE;
|
||||
unsigned clipped = 0;
|
||||
unsigned j;
|
||||
|
||||
if (0) debug_printf("%s\n");
|
||||
|
|
@ -110,11 +110,10 @@ static boolean post_vs_cliptest_viewport_gl( struct pt_post_vs *pvs,
|
|||
out->clipmask = compute_clipmask_gl(out->clip,
|
||||
pvs->draw->plane,
|
||||
pvs->draw->nr_planes);
|
||||
clipped += out->clipmask;
|
||||
|
||||
if (out->clipmask == 0)
|
||||
{
|
||||
clipped = TRUE;
|
||||
|
||||
/* divide by w */
|
||||
float w = 1.0f / out->data[0][3];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue