xlib: remove MESA_GLX_VISUAL_HACK
[mesa.git] / src / mesa / drivers / x11 / xm_tri.c
index aa9ffe5030c13eb8f3ebc7061359ca4d135a7aec..da26235ff045460042b2d7c22f26e9c9ed58dd32 100644 (file)
@@ -30,6 +30,8 @@
  */
 
 
+#include <stdio.h>
+#include "c99_math.h"
 #include "main/imports.h"
 #include "main/mtypes.h"
 #include "glxheader.h"
@@ -1015,7 +1017,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;