remove DitherValues
[mesa.git] / src / mesa / drivers / x11 / xm_tri.c
index 8e8b8fc93889a72d395a33b366dd85d455ca204f..f018a6acacbaeb6b562ebe97fad9ddaed8c3e4c0 100644 (file)
@@ -1309,12 +1309,12 @@ static swrast_tri_func get_triangle_func( GLcontext *ctx )
    XMesaContext xmesa = XMESA_CONTEXT(ctx);
    int depth = GET_VISUAL_DEPTH(xmesa->xm_visual);
 
-   (void) kernel1;
-
 #ifdef DEBUG
    triFuncName = NULL;
 #endif
 
+   if ((ctx->Color._DrawDestMask & (DD_FRONT_LEFT_BIT | DD_BACK_LEFT_BIT)) ==0)
+      return (swrast_tri_func) NULL;
    if (ctx->RenderMode != GL_RENDER)  return (swrast_tri_func) NULL;
    if (ctx->Polygon.SmoothFlag)       return (swrast_tri_func) NULL;
    if (ctx->Texture._EnabledUnits)    return (swrast_tri_func) NULL;