Thomas Tanner 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.

-Brian

----------------------------------------------------------------------
Brian Paul        Avid Technology / Softimage      [EMAIL PROTECTED]


_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to