aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-06-12 15:46:10 -0600
committerBrian Paul <[email protected]>2008-06-12 15:46:10 -0600
commitb19e8f720bb2f4d360f5497b64901fc48321f172 (patch)
treea15efeaf251d39fbb98168b4200a157f3679f82b /src/mesa/state_tracker
parentcfe876371454074b598197582f8b01317b21eb51 (diff)
gallium: test for FEATURE_convolution
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_cb_texture.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index e15ccec89b4..b2f49102256 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -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,