Forcing 32 Bit textures
I had a post on here awhile ago about loss of color in my textures, and someone suggested instructing my video card to force 32-bit textures. How exactly would I go about doing this?
You can''t really force a certain colour depth, you can only ask for it. The driver is free to fall back to 16bit, if required by the hardware. But in practice you''ll get what you ask for, if the hardware can comply.
First, make sure that the screenmode you use is 32bit. Then, when you upload a texture with glTexImage2D(), you have to specify GL_RGBA8 (or GL_RGB8) as internal format. This will request 8bit per channel, ie. a total of 32bit.
First, make sure that the screenmode you use is 32bit. Then, when you upload a texture with glTexImage2D(), you have to specify GL_RGBA8 (or GL_RGB8) as internal format. This will request 8bit per channel, ie. a total of 32bit.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement