st/mesa: fix non-mipmap lastLevel calculation.
reviewed by Brian Paul.
(cherry picked from master, commit ae2daacbac
)
This commit is contained in:
@@ -1775,6 +1775,10 @@ st_finalize_texture(GLcontext *ctx,
|
|||||||
* incomplete. In that case, we'll have set stObj->lastLevel before
|
* incomplete. In that case, we'll have set stObj->lastLevel before
|
||||||
* we get here.
|
* we get here.
|
||||||
*/
|
*/
|
||||||
|
if (stObj->base.MinFilter == GL_LINEAR ||
|
||||||
|
stObj->base.MinFilter == GL_NEAREST)
|
||||||
|
stObj->lastLevel = stObj->base.BaseLevel;
|
||||||
|
else
|
||||||
stObj->lastLevel = stObj->base._MaxLevel - stObj->base.BaseLevel;
|
stObj->lastLevel = stObj->base._MaxLevel - stObj->base.BaseLevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user