mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 22:30:24 +01:00
st/mesa: when copying mipmap levels between textures, start at BaseLevel
Saves some work and avoids potential issue with inconsistant mipmap level sizes. As long as the mipmap levels from BaseLevel to MaxLevel are consistant, we don't care about the other levels.
This commit is contained in:
parent
095a6531a2
commit
9adebe172d
1 changed files with 1 additions and 1 deletions
|
|
@ -1900,7 +1900,7 @@ st_finalize_texture(GLcontext *ctx,
|
|||
*/
|
||||
for (face = 0; face < nr_faces; face++) {
|
||||
GLuint level;
|
||||
for (level = 0; level <= stObj->lastLevel; level++) {
|
||||
for (level = stObj->base.BaseLevel; level <= stObj->lastLevel; level++) {
|
||||
struct st_texture_image *stImage =
|
||||
st_texture_image(stObj->base.Image[face][level]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue