llvmpipe: Don't assert due to unsupported texture wrap modes.

Issue a warning and fallback to clamping.
This commit is contained in:
José Fonseca
2009-09-16 16:12:22 +01:00
parent 5ce72c559c
commit f911d196cf
@@ -208,6 +208,11 @@ lp_build_sample_wrap(struct lp_build_sample_context *bld,
case PIPE_TEX_WRAP_MIRROR_CLAMP_TO_EDGE:
case PIPE_TEX_WRAP_MIRROR_CLAMP_TO_BORDER:
/* FIXME */
_debug_printf("warning: failed to translate texture wrap mode %u\n", wrap_mode);
coord = lp_build_max(int_coord_bld, coord, int_coord_bld->zero);
coord = lp_build_min(int_coord_bld, coord, length_minus_one);
break;
default:
assert(0);
}