Skip to content

Commit 9cfac79

Browse files
lgritzzachlewis
authored andcommitted
fix: build break from untested combo of two PRs (AcademySoftwareFoundation#4794)
Oops, my bad. Looks like AcademySoftwareFoundation#4664 (merged about a week ago) and AcademySoftwareFoundation#4783 (merged today, but authored before AcademySoftwareFoundation#4664 was merged) interacted in a way that produced a build break. This tiny fix is essential to unbreak it. Signed-off-by: Larry Gritz <[email protected]>
1 parent bbf9ace commit 9cfac79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libtexture/imagecache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3915,7 +3915,7 @@ ImageCacheImpl::add_tile(ustring filename, int subimage, int miplevel, int x,
39153915
}
39163916
if (chend < chbegin) { // chend < chbegin means "all channels."
39173917
chbegin = 0;
3918-
chend = file->spec(subimage, miplevel).nchannels;
3918+
chend = file->spec(subimage).nchannels;
39193919
}
39203920
TileID tileid(*file, subimage, miplevel, x, y, z, chbegin, chend);
39213921
ImageCacheTileRef tile

0 commit comments

Comments
 (0)