X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fpolygon.c;h=60af88f9857ca831da6b3beffc74acf73221b673;hb=34953f8907fddd0d2b27d276580a1d3223047987;hp=c1c31660e1259a92fbde556ae596a7bd0f57f1a7;hpb=2f11e92cef51c88a09bc778e2ceca4ab50cf0017;p=mesa.git diff --git a/src/mesa/main/polygon.c b/src/mesa/main/polygon.c index c1c31660e12..60af88f9857 100644 --- a/src/mesa/main/polygon.c +++ b/src/mesa/main/polygon.c @@ -93,14 +93,14 @@ _mesa_FrontFace( GLenum mode ) if (MESA_VERBOSE&VERBOSE_API) _mesa_debug(ctx, "glFrontFace %s\n", _mesa_enum_to_string(mode)); + if (ctx->Polygon.FrontFace == mode) + return; + if (mode!=GL_CW && mode!=GL_CCW) { _mesa_error( ctx, GL_INVALID_ENUM, "glFrontFace" ); return; } - if (ctx->Polygon.FrontFace == mode) - return; - FLUSH_VERTICES(ctx, _NEW_POLYGON); ctx->Polygon.FrontFace = mode;