diff options
author | Brian Paul <[email protected]> | 2000-04-18 14:32:10 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-04-18 14:32:10 +0000 |
commit | c397a6b28351ad97f996f913cfe9266b9f9096f6 (patch) | |
tree | f4b09d9b724ba8bd539b5a3ce89c481b4ebf0a24 /src/mesa/main/drawpix.c | |
parent | 7b5f09c7ded33ef41955f4c9fa3e35d4c34f313a (diff) |
more color table and imaging work
Diffstat (limited to 'src/mesa/main/drawpix.c')
-rw-r--r-- | src/mesa/main/drawpix.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/main/drawpix.c b/src/mesa/main/drawpix.c index 80059124bbb..38ffcc85462 100644 --- a/src/mesa/main/drawpix.c +++ b/src/mesa/main/drawpix.c @@ -1,4 +1,4 @@ -/* $Id: drawpix.c,v 1.20 2000/04/12 18:54:48 brianp Exp $ */ +/* $Id: drawpix.c,v 1.21 2000/04/18 14:32:10 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -121,6 +121,8 @@ simple_DrawPixels( GLcontext *ctx, GLint x, GLint y, && !ctx->Pixel.ScaleOrBiasRGBApcm && ctx->ColorMatrix.type == MATRIX_IDENTITY && !ctx->Pixel.ColorTableEnabled + && !ctx->Pixel.PostColorMatrixColorTableEnabled + && !ctx->Pixel.MinMaxEnabled && ctx->Pixel.IndexShift==0 && ctx->Pixel.IndexOffset==0 && ctx->Pixel.MapColorFlag==0 && ctx->Texture.ReallyEnabled == 0 @@ -650,6 +652,8 @@ draw_rgba_pixels( GLcontext *ctx, GLint x, GLint y, pixels, width, height, format, type, 0, row, 0); _mesa_unpack_ubyte_color_span(ctx, width, GL_RGBA, (void*) rgba, format, type, source, unpack, GL_TRUE); + if (ctx->Pixel.MinMaxEnabled && ctx->MinMax.Sink) + continue; if (ctx->Texture.ReallyEnabled && ctx->Pixel.PixelTextureEnabled) { GLfloat s[MAX_WIDTH], t[MAX_WIDTH], r[MAX_WIDTH], q[MAX_WIDTH]; |