Mads Ipsen wrote:
>
> If I instead of the 4x4 grid choose a 5x5 grid with the row coloring
>
> 0, 63, 127, 191, 255
>
> and input this to gluScaleImage for a 16x16 upscaling, I get a
> completely different grid. The coloring of each row is no longer
> homogeneous and RGB values vary at each gridpoint (non-grayscale
> colors start to appear). For example for the last row I get
>
gluScaleImage uses the GL_PACK_* and GL_UNPACK_* variables
so those must be compatible with your data.
For example GL_UNPACK_ALIGNMENT has default value 4
which means that the input (unless I am once again
mixing pack/unpack) data is expected to start on
4 byte boundary for each row.
If I read your code correctly this is not the case,
so if you dont change the variables from their
defaults "funny" things will happen.
Eero
_______________________________________________
Mesa-bug maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-bug
_______________________________________________
Mesa-dev maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev