summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_pt_post_vs.c
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2015-12-11 23:14:30 +0100
committerRoland Scheidegger <sroland@vmware.com>2015-12-15 02:03:40 +0100
commit1b22815af624b93bcfebc8069598349e151bc67f (patch)
treefa4fde30a80b834888d2804629b0ff524a97bf2e /src/gallium/auxiliary/draw/draw_pt_post_vs.c
parent9e3f2af3c3732bd618308ddeffb017966a4fc93e (diff)
downloadexternal_mesa3d-1b22815af624b93bcfebc8069598349e151bc67f.tar.gz
external_mesa3d-1b22815af624b93bcfebc8069598349e151bc67f.tar.bz2
external_mesa3d-1b22815af624b93bcfebc8069598349e151bc67f.zip
draw: don't pretend have_clipdist is per-vertex
This is just for code cleanup, conceptually the have_clipdist really isn't per-vertex state, so don't put it there (just dependent on the shader). Even though there wasn't really any overhead associated with this, we shouldn't store random shader information in the vertex header. Reviewed-by: Brian Paul <brianp@vmware.com Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_post_vs.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_post_vs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_post_vs.c b/src/gallium/auxiliary/draw/draw_pt_post_vs.c
index f0d5e0f565..3a9101a44d 100644
--- a/src/gallium/auxiliary/draw/draw_pt_post_vs.c
+++ b/src/gallium/auxiliary/draw/draw_pt_post_vs.c
@@ -58,7 +58,7 @@ initialize_vertex_header(struct vertex_header *header)
{
header->clipmask = 0;
header->edgeflag = 1;
- header->have_clipdist = 0;
+ header->pad = 0;
header->vertex_id = UNDEFINED_VERTEX_ID;
}