diff options
author | Ben Skeggs <[email protected]> | 2005-01-06 00:10:11 +0000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2005-01-06 00:10:11 +0000 |
commit | 7b51aa54be958b3bf5710df7eedf1b7a2aeddd84 (patch) | |
tree | 2be9ad62e97704bacd0c9b4478e8c7ad59306f44 /src/mesa/drivers | |
parent | 3e4d4aca77479f7c9cef8fdc218c20d1f2876433 (diff) |
Added GL_POLYGON primitive. Single primitive between glBegin()/glEnd() now works.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_render.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_render.c b/src/mesa/drivers/dri/r300/r300_render.c index fb2c759b01a..b7f99f66376 100644 --- a/src/mesa/drivers/dri/r300/r300_render.c +++ b/src/mesa/drivers/dri/r300/r300_render.c @@ -126,6 +126,11 @@ static int r300_get_primitive_type(r300ContextPtr rmesa, type=R300_VAP_VF_CNTL__PRIM_QUAD_STRIP; min_vertices=4; break; + case GL_POLYGON: + name="P"; + type=R300_VAP_VF_CNTL__PRIM_POLYGON; + min_vertices=3; + break; default: fprintf(stderr, "%s:%s Do not know how to handle primitive %02x - help me !\n", __FILE__, __FUNCTION__, @@ -136,7 +141,7 @@ static int r300_get_primitive_type(r300ContextPtr rmesa, #if 0 fprintf(stderr, "[%d-%d]%s ", start, end, name); #endif - if(start+min_vertices>=end){ + if(start+min_vertices>end){ static int warn_once=1; if(warn_once){ fprintf(stderr, "%s:%s Not enough vertices to draw primitive %02x - help me !\n", |