Fix countMipmaps bug reported by Richard Sim.
This commit is contained in:
parent
140bf1cb8c
commit
f792eba40b
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user