When rendering quad strips via tri strips we can't get the provoking
vertex right, so disallow flat shading.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
FLUSH();
}
- else if (HAVE_TRI_STRIPS) {
+ else if (HAVE_TRI_STRIPS && ctx->Light.ShadeModel == GL_SMOOTH) {
LOCAL_VARS;
int dmasz = GET_SUBSEQUENT_VB_MAX_VERTS();
int currentsz;
} else if (HAVE_QUAD_STRIPS) {
ok = GL_TRUE;
} else {
- ok = HAVE_TRI_STRIPS;
+ ok = (HAVE_TRI_STRIPS && ctx->Light.ShadeModel == GL_SMOOTH);
}
break;
case GL_QUADS: