I have a weird problem with pbuffers on linux with nvidia hardware. When I use glReadPixels or glCopyTexImage2d, the bottom row and right column of the image is garbled.
I’ve got the exact same problem on Mandrake Linux 8 with the latest NVIDIA Linux drivers. I’m using glCopyTexSubImage to do render-2-texture and also get garbage at the edges of the resulting texture.
hmm… I tried to use the glViewport/glReadpixels(0,1, w, h). hack, but it doesn’t work for all pbuffer sizes. It works for a 256x256 pbuffer, but for 512x512 the stripes were back again…
Originally posted by eldritch: hmm… I tried to use the glViewport/glReadpixels(0,1, w, h). hack, but it doesn’t work for all pbuffer sizes. It works for a 256x256 pbuffer, but for 512x512 the stripes were back again…
It works for me with 512x512 pbuffer
Don’t forget you have to create a pbuffer with one additional pixel so a 513x513 pbuffer.
It is still a ugly hack…