return;
}
-#if !NEWTEXSTORE
- _mesa_transfer_teximage(ctx, 2, texImage->Format,/* Tex int format */
- texImage->TexFormat, /* dest format */
- (GLubyte *) tempImage, /* dest */
- width, height, 1, /* subimage size */
- 0, 0, 0, /* subimage pos */
- width * texelBytes, /* dest row stride */
- 0, /* dst image stride */
- format, type, pixels, packing);
-#else
texImage->TexFormat->StoreImage(ctx, 2, texImage->Format,
&texImage->Format, texImage->Data,
0, 0, 0, /* dstX/Y/Zoffset */
0, /* dstImageStride */
width, height, 1,
format, type, pixels, packing);
-#endif
/* now rescale */
scaledImage = MALLOC(newWidth * newHeight * texelBytes);
}
else {
/* no rescaling needed */
-#if !NEWTEXSTORE
- _mesa_transfer_teximage(ctx, 2, texImage->Format, /* Tex int format */
- texImage->TexFormat, /* dest format */
- (GLubyte *) texImage->Data,/* dest */
- width, height, 1, /* subimage size */
- xoffset, yoffset, 0, /* subimage pos */
- mml->width * texelBytes, /* dest row stride */
- 0, /* dst image stride */
- format, type, pixels, packing);
-#else
texImage->TexFormat->StoreImage(ctx, 2, texImage->Format,
&texImage->Format, texImage->Data,
xoffset, yoffset, 0,
0, /* dstImageStride */
width, height, 1,
format, type, pixels, packing);
-#endif
}
ti->reloadImages = GL_TRUE; /* signal the image needs to be reloaded */
#include "mtypes.h"
-/*** NEWTEXSTORE ***/
-
/* Macro just to save some typing */
#define STORE_PARAMS \
GLcontext *ctx, GLuint dims, \
const struct gl_pixelstore_attrib *srcPacking);
-#if !NEWTEXSTORE
-
-extern void
-_mesa_transfer_teximage(GLcontext *ctx, GLuint dimensions,
- GLenum baseInternalFormat,
- const struct gl_texture_format *texDestFormat,
- GLvoid *texDestAddr,
- GLint srcWidth, GLint srcHeight, GLint srcDepth,
- GLint dstXoffset, GLint dstYoffset, GLint dstZoffset,
- GLint dstRowStride, GLint dstImageStride,
- GLenum srcFormat, GLenum srcType,
- const GLvoid *srcAddr,
- const struct gl_pixelstore_attrib *srcPacking);
-
-#endif /* NEWTEXSTORE */
-
-
extern void
_mesa_store_teximage1d(GLcontext *ctx, GLenum target, GLint level,
GLint internalFormat,