jtipton
07-26-2006, 10:55 AM
I am trying to specify some pixel transfer options for a simple 2D texture. The code below does not apply the transfer settings to the texture data. I have substituted the texture calls with glDrawPixels and everything works, so I am inclined to believe it involves the glTexSubImage pixel path. Here is the code:
glTexImage2D(GL_TEXTURE_2D, 0, GL_INTENSITY8, 512, 512, 0, GL_LUMINANCE, GL_FLOAT, NULL);
// Set Pixel Transfer Scaling and Bias
glTexSubImage2D(GL_TEXTURE2D, 0, 0, 0, 512, 512, GL_LUMINANCE, GL_FLOAT, array);There are no GL errors being generated. This works fine on the most recent driver for the Radeon 9800 and the Mesa DRI drivers. This does not work on my older Radeon 9800 driver, which just so happens to be the one I need to use. Am I doing something wrong, or is this just a driver problem?
Thanks,
Jason
glTexImage2D(GL_TEXTURE_2D, 0, GL_INTENSITY8, 512, 512, 0, GL_LUMINANCE, GL_FLOAT, NULL);
// Set Pixel Transfer Scaling and Bias
glTexSubImage2D(GL_TEXTURE2D, 0, 0, 0, 512, 512, GL_LUMINANCE, GL_FLOAT, array);There are no GL errors being generated. This works fine on the most recent driver for the Radeon 9800 and the Mesa DRI drivers. This does not work on my older Radeon 9800 driver, which just so happens to be the one I need to use. Am I doing something wrong, or is this just a driver problem?
Thanks,
Jason