diff options
author | Felix Kuehling <[email protected]> | 2004-03-07 01:36:50 +0000 |
---|---|---|
committer | Felix Kuehling <[email protected]> | 2004-03-07 01:36:50 +0000 |
commit | 2cd815b66009eea8e06dc4b6dfd32cb7898ff416 (patch) | |
tree | e0bc635d89e01165e1224e1f8e98939e8a8d631e /src/mesa/drivers/dri/savage/savage_xmesa.c | |
parent | 2c8dacea5fa52e793bc594c97f6bc730459f915d (diff) |
Fixed two small problems in the vertex setup.
- make sure that vertex setup is initialized
- Savage seems to need the W coordinate for smooth shading
Diffstat (limited to 'src/mesa/drivers/dri/savage/savage_xmesa.c')
-rw-r--r-- | src/mesa/drivers/dri/savage/savage_xmesa.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/savage/savage_xmesa.c b/src/mesa/drivers/dri/savage/savage_xmesa.c index db9256e615e..c7b31df2c68 100644 --- a/src/mesa/drivers/dri/savage/savage_xmesa.c +++ b/src/mesa/drivers/dri/savage/savage_xmesa.c @@ -408,6 +408,11 @@ savageCreateContext( const __GLcontextModes *mesaVis, imesa->depth_scale = (imesa->savageScreen->zpp == 2) ? (1.0F/0x10000):(1.0F/0x1000000); + /* Uninitialized vertex format. Force setting the vertex state in + * savageRenderStart. + */ + imesa->vertex_size = 0; + /* Utah stuff */ imesa->new_state = ~0; |