Forcing 32 Bit textures

Started by
1 comment, last by Prince Aron 20 years, 10 months ago
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?
"In the beginning the universe was created. This has made a lot of people very angry and has been widely regarded as a bad move."
Advertisement
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.
Thanks! That''s exactly what I was after! I''ll try that!
"In the beginning the universe was created. This has made a lot of people very angry and has been widely regarded as a bad move."

This topic is closed to new replies.

Advertisement