Cleanup: IMB prefix for ImBuf defines

This commit is contained in:
2015-07-13 22:00:07 +10:00
parent e142ae77ca
commit 2d32b92d77
7 changed files with 18 additions and 18 deletions

View File

@@ -1145,7 +1145,7 @@ static int imagewraposa_aniso(Tex *tex, Image *ima, ImBuf *ibuf, const float tex
ImBuf *previbuf, *curibuf;
float levf;
int maxlev;
ImBuf *mipmaps[IB_MIPMAP_LEVELS + 1];
ImBuf *mipmaps[IMB_MIPMAP_LEVELS + 1];
/* modify ellipse minor axis if too eccentric, use for area sampling as well
* scaling dxt/dyt as done in pbrt is not the same
@@ -1185,7 +1185,7 @@ static int imagewraposa_aniso(Tex *tex, Image *ima, ImBuf *ibuf, const float tex
curmap = 0;
maxlev = 1;
mipmaps[0] = ibuf;
while (curmap < IB_MIPMAP_LEVELS) {
while (curmap < IMB_MIPMAP_LEVELS) {
mipmaps[curmap + 1] = ibuf->mipmap[curmap];
if (ibuf->mipmap[curmap]) maxlev++;
curmap++;
@@ -1585,7 +1585,7 @@ int imagewraposa(Tex *tex, Image *ima, ImBuf *ibuf, const float texvec[3], const
curmap= 0;
previbuf= curibuf= ibuf;
while (curmap<IB_MIPMAP_LEVELS && ibuf->mipmap[curmap]) {
while (curmap < IMB_MIPMAP_LEVELS && ibuf->mipmap[curmap]) {
if (maxd < pixsize) break;
previbuf= curibuf;
curibuf= ibuf->mipmap[curmap];