gallium: test for FEATURE_convolution
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 12 Jun 2008 21:46:10 +0000 (15:46 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 12 Jun 2008 21:46:10 +0000 (15:46 -0600)
src/mesa/state_tracker/st_cb_texture.c

index e15ccec89b429ecbffb3d4a01b574dab39380d36..b2f4910225663305845882e342357f54ab026106 100644 (file)
@@ -26,7 +26,9 @@
  **************************************************************************/
 
 #include "main/imports.h"
+#if FEATURE_convolution
 #include "main/convolve.h"
+#endif
 #include "main/enums.h"
 #include "main/image.h"
 #include "main/macros.h"
@@ -517,10 +519,12 @@ st_TexImage(GLcontext * ctx,
    stImage->face = _mesa_tex_target_to_face(target);
    stImage->level = level;
 
+#if FEATURE_convolution
    if (ctx->_ImageTransferState & IMAGE_CONVOLUTION_BIT) {
       _mesa_adjust_image_for_convolution(ctx, dims, &postConvWidth,
                                          &postConvHeight);
    }
+#endif
 
    /* choose the texture format */
    texImage->TexFormat = st_ChooseTextureFormat(ctx, internalFormat,