PDA

View Full Version : ReadPixels doesn't work with Textured Scene?



rangers99
04-07-2002, 04:34 PM
If I create an OpenGL scene using primitives such as spheres and cones then glReadPixels works fine. However if I create a scene that uses a texture then it doesn't work. The format of glReadPixels I am using is shown below. Is there some setting required when textures are used.

thanks

==============================


glReadPixels(0, 0,imagewidth, imageheight,
GL_RGB,GL_UNSIGNED_BYTE,ReferenceImage);


[This message has been edited by rangers99 (edited 04-07-2002).]

rangers99
04-07-2002, 09:06 PM
ha...ya.........MUPPETS.

Worked out the answer myself. You have to do

glDisable(TEXTURE_2D).