Thomas Tanner wrote:
>
> On 09-Jun-99 Brian Paul wrote:
> >> demos/drawpix exposes a bug in Mesa (experimental-1 branch, X11):
> >> press 'W' or 'P' for some seconds and look at the first line
> >> press 'H' -> random garbage on the top
> >> press 'R' until you can't see the picture any more -> segfault
> > I wouldn't say this is a bug. By changing the GL_UNPACK_SKIP_ROWS
> > and/or GL_UNPACK_SKIP_PIXELS you're telling glDrawPixels to fetch
> > pixel data from outside of the malloc'd image memory. That, of
> > course, is a no-no and can eventually lead to a segfault.
>
> Okay, but that should be documented, IMHO.
An competant programmer should know better than to pass invalid data
to a function. The OpenGL documentation clearly defines the expected
inputs to all functions.
-Brian
----------------------------------------------------------------------
Brian Paul Avid Technology / Softimage [EMAIL PROTECTED]
_______________________________________________
Mesa-dev maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev