-/* $Id: colortab.c,v 1.16 2000/04/18 14:32:10 brianp Exp $ */
+/* $Id: colortab.c,v 1.17 2000/05/10 14:39:53 brianp Exp $ */
/*
* Mesa 3-D graphics library
GLfloat *dest = (GLfloat *) table->Table + start * comps * sizeof(GLfloat);
ASSERT(table->TableType == GL_FLOAT);
_mesa_unpack_float_color_span(ctx, count, table->Format, dest,
- format, type, data, &ctx->Unpack, GL_TRUE);
+ format, type, data, &ctx->Unpack,
+ GL_FALSE, GL_TRUE);
}
if (texObj || target == GL_SHARED_TEXTURE_PALETTE_EXT) {
-/* $Id: image.c,v 1.30 2000/05/04 13:48:49 brianp Exp $ */
+/* $Id: image.c,v 1.31 2000/05/10 14:39:53 brianp Exp $ */
/*
* Mesa 3-D graphics library
GLenum srcFormat, GLenum srcType,
const GLvoid *source,
const struct gl_pixelstore_attrib *unpacking,
- GLboolean applyTransferOps )
+ GLboolean applyTransferOps, GLboolean clamp )
{
ASSERT(dstFormat == GL_ALPHA ||
dstFormat == GL_LUMINANCE ||
}
/* clamp to [0,1] */
- {
+ if (clamp) {
GLuint i;
for (i = 0; i < n; i++) {
rgba[i][RCOMP] = CLAMP(rgba[i][RCOMP], 0.0F, 1.0F);
-/* $Id: image.h,v 1.8 2000/04/18 14:32:10 brianp Exp $ */
+/* $Id: image.h,v 1.9 2000/05/10 14:39:53 brianp Exp $ */
/*
* Mesa 3-D graphics library
GLenum srcFormat, GLenum srcType,
const GLvoid *source,
const struct gl_pixelstore_attrib *unpacking,
- GLboolean applyTransferOps );
+ GLboolean applyTransferOps, GLboolean clamp );
extern void