Can glReadPixels fail because of the video card?

I wrote a OpenGL program, using glReadPixels(…) to get some information. However, the program works fine on some computers but fails on some other computers, especially on laptops. I checked my program and found glReadPixels(…) failed to feedback the information I needed. Is the problem related to the video card?

I found glStencilFunc() also failed on some systems!

I would imagine that glStencilFunc() would be dependent on the videcard supporting a stencil buffer. Most cards tnt2/rage128pro and later should support this, but others will fail.

As for glReadPixels, I’m not sure what hardware it might depend on, you could try asking in one of the “Coding” forums on this site, or read the OpenGL spec.