diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2001-02-17 18:41:01 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2001-02-17 18:41:01 +0000 |
commit | e75d2424e53d6023f4414e40694cd467e5392b96 (patch) | |
tree | ad354e0042460ae53e689229498872625e07d412 /src/mesa/main/histogram.c | |
parent | 8f9a594ac8116ed5cab7f8eca14c17ec3e250dad (diff) | |
download | mesa-e75d2424e53d6023f4414e40694cd467e5392b96.tar.gz |
Changed FetchTexel() function pointer arguments.
Implemented glGetTexImage(format=GL_COLOR_INDEX).
Changed _mesa_unpack_depth_span() args.
Minor changes/clean-ups in mtypes.h.
Histogram counter component sizes were wrong.
Diffstat (limited to 'src/mesa/main/histogram.c')
-rw-r--r-- | src/mesa/main/histogram.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/main/histogram.c b/src/mesa/main/histogram.c index 7a3f7f47731..dddaac39350 100644 --- a/src/mesa/main/histogram.c +++ b/src/mesa/main/histogram.c @@ -1,4 +1,4 @@ -/* $Id: histogram.c,v 1.6 2001/01/30 17:46:34 brianp Exp $ */ +/* $Id: histogram.c,v 1.7 2001/02/17 18:41:01 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -944,11 +944,11 @@ _mesa_Histogram(GLenum target, GLsizei width, GLenum internalFormat, GLboolean s ctx->Histogram.Width = width; ctx->Histogram.Format = internalFormat; ctx->Histogram.Sink = sink; - ctx->Histogram.RedSize = 0xffffffff; - ctx->Histogram.GreenSize = 0xffffffff; - ctx->Histogram.BlueSize = 0xffffffff; - ctx->Histogram.AlphaSize = 0xffffffff; - ctx->Histogram.LuminanceSize = 0xffffffff; + ctx->Histogram.RedSize = 8 * sizeof(GLuint); + ctx->Histogram.GreenSize = 8 * sizeof(GLuint); + ctx->Histogram.BlueSize = 8 * sizeof(GLuint); + ctx->Histogram.AlphaSize = 8 * sizeof(GLuint); + ctx->Histogram.LuminanceSize = 8 * sizeof(GLuint); } ctx->NewState |= _NEW_PIXEL; |