R3_G3_B2 textures

Hello guys,

I am trying to render a GL_R3_G3_B2 textures but I get only black display.

I define the texture like this:
glTexImage2D(GL_TEXTURE_2D, 0, GL_R3_G3_B2, 1024, 1024, 0, GL_RGB, GL_UNSIGNED_BYTE_3_3_2, image);

I don’t get any GL error and when I read the internal format I get GL_R3_G3_B2.

I fill the image with 0xFF (White) 0xE0 (red) etc but get only black texture.

I use the NVIDIA FX5700LE GPU.

What is wrong?

Many thanks,


Have you changed the texture minification filter from default nearest_mipmap_linear to nearest or linear? Otherwise one level of detail is not enough to specify a texture.

Hi Relic,

Thanks for the answer,
I have found an error in my app.
It is working OK now.
Many thanks,