-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tom Flynn wrote: > Hi there, > > Background: > I'm currently running an application on a machine which has no graphics and > setting my display to another machine that has an NVidia card in it (and has > the nvidia closed-source drivers). The application makes several calls to > glDrawArrays(). One section of the code uses glInterleavedArrays(), the rest > of the app uses glVertexPointer() and friends. > > Xorg 6.8.2 on machine with no graphics. > Nvidia 1.0-6629, Xorg 6.8.0 on machine with graphics. > > The symtoms: > With the section of code that uses glInterleavedArrays() disabled... > 1) Run the app on my target machine and I just see a blank window on my > nvidia machine. > 2) Replace glDrawArrays() with glDrawElements() (via an LD_PRELOADED library > i made), everything I expected shows up on screen. > > Now, with the section of code that uses glInterleavedArrays() enabled and > glDrawArrays() replaced with glDrawElements()... > 3) Bunch of white triangles that don't quite look right. > 4) Replace glInterleavedArrays() with glVertexPointer(), > glEnableClientState(), etc., everything shows up correctly. > > Given this, it seems as if glDrawArrays() and glInterleavedArrays() are > either not being sent correctly, or not being recieved correctly. Any > suggestions on how to narrow this down and tell which machine is behaving > badly?
Try setting LIBGL_NO_DRAWARRAYS=1 in your shell before running your app. There are two ways that DrawArrays can be implemented in GLX. The first way is to just break the call down into individual immediate mode calls (e.g., glVertex, glNormal, etc.). There is also specific DrawArrays protocol that can be used in some cases. The protocol is not used (though it could be with some work) with DrawElements. I suspect setting that env. var. will work around the problem, but it won't help determine where the error is. Can you test indirect rendering to a non-Nvidia server? If nothing else, you should file a bug on this, and I'll try to investigate it this week. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFDcWe1X1gOwKyEAw8RAm1XAJ4tLKPJyf071KYvrq36Ujus9GdLyQCglC1W 9EN29RrlC41SeeP2+kJ9GYA= =tNPB -----END PGP SIGNATURE----- ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev