Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Bug in the glTexImage2D() with UNSIGNED_SHORT_5_5_5_1 and UNSIGNED_SHORT_4_4_4_4: (1 Item)
   
Bug in the glTexImage2D() with UNSIGNED_SHORT_5_5_5_1 and UNSIGNED_SHORT_4_4_4_4  
glTexImage2D() reads texture image colors in wrong order, when texture data format passed as the UNSIGNED_SHORT_5_5_5_1 
or as the UNSIGNED_SHORT_4_4_4_4.

When texture is displayed, I can see, that it has been read previously in format ABRA (not a typo), by bits: 1st byte: 
ABBBBBRR 2nd byte: RRRAAAAA. But according to standard, texture image must be in the RGBA format (R - highest bit, A - 
lowest bit).

The same for the RGBA4444 texture format, green color is omitted and color components are placed in wrong order.

I can't check right now UNSIGNED_SHORT_5_6_5, but I think it is also affected

Could be reproduced using software (devg-svga, devg-i830) or hardware renderer (devg-extreme2).