Archived

This topic is now archived and is closed to further replies.

Forcing 32 Bit textures

This topic is 5309 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites