PDA

View Full Version : Bug with glPixelTransferf when using glTexImage2D??



gihhache
08-06-2003, 12:22 PM
It is stated that the glPixelTransferf function effects the operations of functions such as glCopyPixels, glCopyTexImage1D,
glCopyTexImage2D, glCopyTexSubImage1D, glCopyTexSubImage2D,
glDrawPixels, glReadPixels, glTexImage1D, glTexImage2D,
glTexSubImage1D, and glTexSubImage2D. See link:http://pyopengl.sourceforge.net/documentation/ref/gl/pixeltransfer.html

however,
when performing these operations
glPixelTransferf(GL_RED_SCALE,0);
glPixelTransferf(GL_RED_BIAS,0);
glPixelTransferf(GL_BLUE_BIAS,0);
on glTexImage2D( no changes occur but when the same operations are performed on some function glDrawPixels only the green channel shows (which is what should happen for glTexImage2D( but does not seem to.

Any ideas on what might be causing this problem will be greatly appreciated.

gihhache
08-06-2003, 12:30 PM
typo fix***

glPixelTransferf(GL_RED_SCALE,0);
glPixelTransferf(GL_RED_BIAS,0);
glPixelTransferf(GL_BLUE_SCALE,0);
glPixelTransferf(GL_BLUE_BIAS,0);

are the operations being performed as mentioned

jra101
08-06-2003, 01:00 PM
Works fine for me with glTexImage2D and glDrawPixels.

What hardware and drivers are you using?