fixed two proxy texture typos
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 28 Jun 2000 15:48:32 +0000 (15:48 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 28 Jun 2000 15:48:32 +0000 (15:48 +0000)
src/mesa/main/teximage.c

index f5a2047b33ac18d951765c20d324d91197ceda11..98f62c8162c4faacf6b3e054548dd5c9d0816f22 100644 (file)
@@ -1557,7 +1557,7 @@ _mesa_TexImage2D( GLenum target, GLint level, GLint internalFormat,
       }
       else {
          /* if no error, update proxy texture image parameters */
-         init_texture_image(ctx->Texture.Proxy1D->Image[level],
+         init_texture_image(ctx->Texture.Proxy2D->Image[level],
                             width, height, 1, border, internalFormat);
       }
    }
@@ -1667,7 +1667,7 @@ _mesa_TexImage3D( GLenum target, GLint level, GLint internalFormat,
       }
       else {
          /* if no error, update proxy texture image parameters */
-         init_texture_image(ctx->Texture.Proxy1D->Image[level],
+         init_texture_image(ctx->Texture.Proxy3D->Image[level],
                             width, height, depth, border, internalFormat);
       }
    }