A variant thereof might be later reintroduced for the mirrored-clamp modes.
state->unit[i].fake_npot = TRUE; */
break;
- case PIPE_TEX_WRAP_CLAMP:
- case PIPE_TEX_WRAP_CLAMP_TO_EDGE:
- case PIPE_TEX_WRAP_CLAMP_TO_BORDER:
- state->unit[i].wrap_mode = RC_WRAP_CLAMP;
- break;
-
case PIPE_TEX_WRAP_MIRROR_REPEAT:
case PIPE_TEX_WRAP_MIRROR_CLAMP:
case PIPE_TEX_WRAP_MIRROR_CLAMP_TO_EDGE:
}
if (compiler->state.unit[inst->U.I.TexSrcUnit].fake_npot &&
- wrapmode != RC_WRAP_NONE && wrapmode != RC_WRAP_CLAMP) {
+ wrapmode != RC_WRAP_NONE) {
if (wrapmode == RC_WRAP_REPEAT) {
inst_rect = rc_insert_new_instruction(c, inst->Prev);
unsigned temp = rc_find_free_temporary(c);
if (compiler->state.unit[inst->U.I.TexSrcUnit].fake_npot &&
- wrapmode != RC_WRAP_NONE && wrapmode != RC_WRAP_CLAMP) {
+ wrapmode != RC_WRAP_NONE) {
if ((inst->U.I.TexSrcTarget == RC_TEXTURE_RECT ||
compiler->state.unit[inst->U.I.TexSrcUnit].non_normalized_coords)) {
*/
typedef enum {
RC_WRAP_NONE = 0,
- RC_WRAP_CLAMP,
RC_WRAP_REPEAT,
RC_WRAP_MIRROR
} rc_wrap_mode;