i965/gen6: Stencil/hiz needs an offset for LOD > 0
[mesa.git] / src / mesa / drivers / x11 / xm_tri.c
index aa9ffe5030c13eb8f3ebc7061359ca4d135a7aec..e9ec67640dc52060b3dfd7a84951f2f91eb2f753 100644 (file)
@@ -1015,7 +1015,7 @@ get_triangle_func(struct gl_context *ctx)
       return (swrast_tri_func) NULL;
    if (ctx->Polygon.SmoothFlag)
       return (swrast_tri_func) NULL;
-   if (ctx->Texture._EnabledUnits)
+   if (ctx->Texture._MaxEnabledTexImageUnit != -1)
       return (swrast_tri_func) NULL;
    if (swrast->_RasterMask & MULTI_DRAW_BIT)
       return (swrast_tri_func) NULL;