Darke
04-01-2006, 10:41 PM
I'm loading a 32 bit color texture with
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, m_width, m_height, 0, GL_RGBA, GL_UNSIGNED_BYTE, ii->m_pixBits);
but there is a huge degradation. The texture appears to only be 8 bit color when rendered. The pixelformatdescriptor is set for 32 bits per pixel and my desktop is in 32 bit color when I begin the application in windowed mode.
Does anyone have any ideas what might be degrading the color and how I can fix it?
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, m_width, m_height, 0, GL_RGBA, GL_UNSIGNED_BYTE, ii->m_pixBits);
but there is a huge degradation. The texture appears to only be 8 bit color when rendered. The pixelformatdescriptor is set for 32 bits per pixel and my desktop is in 32 bit color when I begin the application in windowed mode.
Does anyone have any ideas what might be degrading the color and how I can fix it?