Cleanup: remove dead code
This commit is contained in:
parent
2a43c9bb08
commit
9581be930b
|
@ -1620,7 +1620,6 @@ int imagewraposa(Tex *tex,
|
|||
/* Choice: */
|
||||
if (tex->imaflag & TEX_MIPMAP) {
|
||||
ImBuf *previbuf, *curibuf;
|
||||
float bumpscale;
|
||||
|
||||
dx = minx;
|
||||
dy = miny;
|
||||
|
@ -1631,14 +1630,6 @@ int imagewraposa(Tex *tex,
|
|||
|
||||
pixsize = 1.0f / (float)MIN2(ibuf->x, ibuf->y);
|
||||
|
||||
bumpscale = pixsize / maxd;
|
||||
if (bumpscale > 1.0f) {
|
||||
bumpscale = 1.0f;
|
||||
}
|
||||
else {
|
||||
bumpscale *= bumpscale;
|
||||
}
|
||||
|
||||
curmap = 0;
|
||||
previbuf = curibuf = ibuf;
|
||||
while (curmap < IMB_MIPMAP_LEVELS && ibuf->mipmap[curmap]) {
|
||||
|
|
Loading…
Reference in New Issue