Fix countMipmaps bug reported by Richard Sim.

This commit is contained in:
castano 2007-11-26 23:05:53 +00:00
parent 140bf1cb8c
commit f792eba40b

View File

@ -38,7 +38,7 @@ namespace
{ {
int mipmap = 0; int mipmap = 0;
while (w != 1 && h != 1) { while (w != 1 || h != 1 || d != 1) {
w = max(1, w / 2); w = max(1, w / 2);
h = max(1, h / 2); h = max(1, h / 2);
d = max(1, d / 2); d = max(1, d / 2);