mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 00:10:10 +01:00
Added GL_POLYGON primitive. Single primitive between glBegin()/glEnd() now works.
This commit is contained in:
parent
3e4d4aca77
commit
7b51aa54be
1 changed files with 6 additions and 1 deletions
|
|
@ -126,6 +126,11 @@ static int r300_get_primitive_type(r300ContextPtr rmesa,
|
||||||
type=R300_VAP_VF_CNTL__PRIM_QUAD_STRIP;
|
type=R300_VAP_VF_CNTL__PRIM_QUAD_STRIP;
|
||||||
min_vertices=4;
|
min_vertices=4;
|
||||||
break;
|
break;
|
||||||
|
case GL_POLYGON:
|
||||||
|
name="P";
|
||||||
|
type=R300_VAP_VF_CNTL__PRIM_POLYGON;
|
||||||
|
min_vertices=3;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "%s:%s Do not know how to handle primitive %02x - help me !\n",
|
fprintf(stderr, "%s:%s Do not know how to handle primitive %02x - help me !\n",
|
||||||
__FILE__, __FUNCTION__,
|
__FILE__, __FUNCTION__,
|
||||||
|
|
@ -136,7 +141,7 @@ static int r300_get_primitive_type(r300ContextPtr rmesa,
|
||||||
#if 0
|
#if 0
|
||||||
fprintf(stderr, "[%d-%d]%s ", start, end, name);
|
fprintf(stderr, "[%d-%d]%s ", start, end, name);
|
||||||
#endif
|
#endif
|
||||||
if(start+min_vertices>=end){
|
if(start+min_vertices>end){
|
||||||
static int warn_once=1;
|
static int warn_once=1;
|
||||||
if(warn_once){
|
if(warn_once){
|
||||||
fprintf(stderr, "%s:%s Not enough vertices to draw primitive %02x - help me !\n",
|
fprintf(stderr, "%s:%s Not enough vertices to draw primitive %02x - help me !\n",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue