[bugfix] Make sure to specify the correct max lod level.
This commit is contained in:
parent
9d5fc3d7f0
commit
52963584f0
|
@ -246,8 +246,8 @@ void VertexManager::vFlush()
|
||||||
tex.texImage0[i&3].width + 1, tex.texImage0[i&3].height + 1,
|
tex.texImage0[i&3].width + 1, tex.texImage0[i&3].height + 1,
|
||||||
tex.texImage0[i&3].format, tex.texTlut[i&3].tmem_offset<<9,
|
tex.texImage0[i&3].format, tex.texTlut[i&3].tmem_offset<<9,
|
||||||
tex.texTlut[i&3].tlut_format,
|
tex.texTlut[i&3].tlut_format,
|
||||||
(tex.texMode0[i&3].min_filter & 3) && (tex.texMode0[i&3].min_filter != 8),
|
(tex.texMode0[i&3].min_filter & 3),
|
||||||
tex.texMode1[i&3].max_lod >> 4,
|
ceil(tex.texMode1[i&3].max_lod / 16.f),
|
||||||
tex.texImage1[i&3].image_type);
|
tex.texImage1[i&3].image_type);
|
||||||
|
|
||||||
if (tentry)
|
if (tentry)
|
||||||
|
|
|
@ -345,8 +345,8 @@ void VertexManager::vFlush()
|
||||||
tex.texImage0[i&3].width + 1, tex.texImage0[i&3].height + 1,
|
tex.texImage0[i&3].width + 1, tex.texImage0[i&3].height + 1,
|
||||||
tex.texImage0[i&3].format, tex.texTlut[i&3].tmem_offset<<9,
|
tex.texImage0[i&3].format, tex.texTlut[i&3].tmem_offset<<9,
|
||||||
tex.texTlut[i&3].tlut_format,
|
tex.texTlut[i&3].tlut_format,
|
||||||
(tex.texMode0[i&3].min_filter & 3) && (tex.texMode0[i&3].min_filter != 8),
|
(tex.texMode0[i&3].min_filter & 3),
|
||||||
tex.texMode1[i&3].max_lod >> 4,
|
ceil(tex.texMode1[i&3].max_lod / 16.f),
|
||||||
tex.texImage1[i&3].image_type);
|
tex.texImage1[i&3].image_type);
|
||||||
|
|
||||||
if (tentry)
|
if (tentry)
|
||||||
|
|
|
@ -164,8 +164,8 @@ void VertexManager::vFlush()
|
||||||
tex.texImage0[i&3].width + 1, tex.texImage0[i&3].height + 1,
|
tex.texImage0[i&3].width + 1, tex.texImage0[i&3].height + 1,
|
||||||
tex.texImage0[i&3].format, tex.texTlut[i&3].tmem_offset<<9,
|
tex.texImage0[i&3].format, tex.texTlut[i&3].tmem_offset<<9,
|
||||||
tex.texTlut[i&3].tlut_format,
|
tex.texTlut[i&3].tlut_format,
|
||||||
(tex.texMode0[i&3].min_filter & 3) && (tex.texMode0[i&3].min_filter != 8),
|
(tex.texMode0[i&3].min_filter & 3),
|
||||||
tex.texMode1[i&3].max_lod >> 4,
|
ceil(tex.texMode1[i&3].max_lod / 16.f),
|
||||||
tex.texImage1[i&3].image_type);
|
tex.texImage1[i&3].image_type);
|
||||||
|
|
||||||
if (tentry)
|
if (tentry)
|
||||||
|
|
Loading…
Reference in New Issue