break;
}
- imesa->regs.s4.texCtrl[0].ni.uMode = !(t->texParams.sWrapMode & 0x01);
- imesa->regs.s4.texCtrl[0].ni.vMode = !(t->texParams.tWrapMode & 0x01);
+ imesa->regs.s4.texCtrl[0].ni.uMode =
+ t->texParams.sWrapMode == GL_REPEAT ? 0 : 1;
+ imesa->regs.s4.texCtrl[0].ni.vMode =
+ t->texParams.tWrapMode == GL_REPEAT ? 0 : 1;
switch (t->texParams.minFilter)
{
break;
}
- imesa->regs.s4.texCtrl[1].ni.uMode = !(t->texParams.sWrapMode & 0x01);
- imesa->regs.s4.texCtrl[1].ni.vMode = !(t->texParams.tWrapMode & 0x01);
+ imesa->regs.s4.texCtrl[1].ni.uMode =
+ t->texParams.sWrapMode == GL_REPEAT ? 0 : 1;
+ imesa->regs.s4.texCtrl[1].ni.vMode =
+ t->texParams.tWrapMode == GL_REPEAT ? 0 : 1;
switch (t->texParams.minFilter)
{