victorng
09-30-2009, 04:34 AM
Hi,
I'm running OpenGL on an ATI equipped FIREGL on a Thinkpad.
I use glReadPixels to read the depth buffer. However, when a resize to enlarge my window and viewport, glReadPixels returns depth values of 0 in the
enlarged areas of the window (bigger than original size). Colour values return okay, but depth does not seem to work. The depth values do seem to be working though as my objects seem to honor the depth values when rendering, but I can't seem to read them back properly.
I don't get this problem on Nvidia cards. Is anyone aware of this bug? Is it ATI-specific?
Regards,
Victor
I'm running OpenGL on an ATI equipped FIREGL on a Thinkpad.
I use glReadPixels to read the depth buffer. However, when a resize to enlarge my window and viewport, glReadPixels returns depth values of 0 in the
enlarged areas of the window (bigger than original size). Colour values return okay, but depth does not seem to work. The depth values do seem to be working though as my objects seem to honor the depth values when rendering, but I can't seem to read them back properly.
I don't get this problem on Nvidia cards. Is anyone aware of this bug? Is it ATI-specific?
Regards,
Victor