There has been some reports on R and B colours getting
mixed in glDrawPixels/glReadPixels on win32/glide based
Mesa. (In my case with V2, which might be significant 
also)

I am now seeing this bug "reliably" on my application:

        -when doing glReadPixels the R and B channel
         datas are swapped.

        -the bug seems to "get started" when I do a
         glDrawPixels operation.

        -after the pixels start reading in swapped fashion
         they stay like that.

I searched around in Mesa sources but could not find an
obvious reason for this. I currently suspect that
it is Glide which is somehow losing its "state".

In Glide2 (at least) I did not find a way to directly
set the RGB/BGR state (or to inquire it) so I couldn't
do any tricks with the state directly. It seems possible
that using the FXMESA_USE_ARGB might avoid the problem,
but I have not tried this yet. (I will check this after
I get the CVS working for me, and have updated my sources)

I currently avoid the problem by coloring a corner
of the screen red and reading those pixels back.
If they are blue, I swap the R and B on my real readpixels
(what an ugly (butworking) hack)

                        Eero


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

Reply via email to