}
/* update histogram count */
if (transferOps & IMAGE_HISTOGRAM_BIT) {
-/* _mesa_update_histogram(ctx, n, (CONST GLfloat (*)[4]) rgba); */
+ _mesa_update_histogram(ctx, n, (CONST GLfloat (*)[4]) rgba);
}
/* min/max here */
if (transferOps & IMAGE_MIN_MAX_BIT) {
-/* _mesa_update_minmax(ctx, n, (CONST GLfloat (*)[4]) rgba); */
+ _mesa_update_minmax(ctx, n, (CONST GLfloat (*)[4]) rgba);
if (ctx->MinMax.Sink) {
UNDEFARRAY(rgbaCopy); /* mac 32k limitation */
return;
}
/* update histogram count */
if (transferOps & IMAGE_HISTOGRAM_BIT) {
-/* _mesa_update_histogram(ctx, n, (CONST GLfloat (*)[4]) rgba); */
+ _mesa_update_histogram(ctx, n, (CONST GLfloat (*)[4]) rgba);
}
/* min/max here */
if (transferOps & IMAGE_MIN_MAX_BIT) {
-/* _mesa_update_minmax(ctx, n, (CONST GLfloat (*)[4]) rgba); */
+ _mesa_update_minmax(ctx, n, (CONST GLfloat (*)[4]) rgba);
}
}
}
/* update histogram count */
if (transferOps & IMAGE_HISTOGRAM_BIT) {
-/* _mesa_update_histogram(ctx, n, (CONST GLfloat (*)[4]) rgba); */
+ _mesa_update_histogram(ctx, n, (CONST GLfloat (*)[4]) rgba);
}
/* min/max here */
if (transferOps & IMAGE_MIN_MAX_BIT) {
-/* _mesa_update_minmax(ctx, n, (CONST GLfloat (*)[4]) rgba); */
+ _mesa_update_minmax(ctx, n, (CONST GLfloat (*)[4]) rgba);
}
}
ctx->Pack.SkipImages = 0;
ctx->Pack.SwapBytes = GL_FALSE;
ctx->Pack.LsbFirst = GL_FALSE;
+ ctx->Pack.ClientStorage = GL_FALSE;
+ ctx->Pack.Invert = GL_FALSE;
ctx->Unpack.Alignment = 4;
ctx->Unpack.RowLength = 0;
ctx->Unpack.ImageHeight = 0;
ctx->Unpack.SkipImages = 0;
ctx->Unpack.SwapBytes = GL_FALSE;
ctx->Unpack.LsbFirst = GL_FALSE;
+ ctx->Unpack.ClientStorage = GL_FALSE;
+ ctx->Unpack.Invert = GL_FALSE;
if (ctx->Visual.doubleBufferMode) {
ctx->Pixel.ReadBuffer = GL_BACK;
/*@{*/
-
-
-
-
-
-
-
/*
* Update items which depend on vertex/fragment programs.
*/
if (new_state & _NEW_LIGHT)
_mesa_update_lighting( ctx );
+ if (new_state & _IMAGE_NEW_TRANSFER_STATE)
+ _mesa_update_pixel( ctx, new_state );
if (new_state & _NEW_PROGRAM)
update_program( ctx );
-
- /* ctx->_NeedEyeCoords is now uptodate.
+ /* ctx->_NeedEyeCoords is now up to date.
*
* If the truth value of this variable has changed, update for the
* new lighting space and recompute the positions of lights and the