glTexImage2D bug?

Posts: 1,487
Joined: 2002.09
Post: #1
I just spent all day trying to figure out why my texture loading code wasn't working. It seems to be that glTexImage2D won't take source pixels with a BGRA UNSIGNED_SHORT_1_5_5_5_REV format. The texture ends up completely white. However, if I change it to RGBA then it loads fine, but blue/red are swapped. (obviously) I could just as easily reformat my textures, but this is really annoying. Is this a GL bug? glDrawPixels handles it with no problem.
Quote this message in a reply
Posts: 5,143
Joined: 2002.04
Post: #2
sounds like a bug to me. File a bug report and see what apple say Smile
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  how to use Glubuild2DMipmaps, GlTexImage2D and glTexParameter 007gamer 1 6,117 Jan 31, 2007 04:36 AM
Last Post: OneSadCookie
  glTexImage2D formats clarification WhatMeWorry 1 7,269 Nov 17, 2004 01:31 AM
Last Post: arekkusu
  Issue with glTexImage2D? Mars_999 5 6,554 Oct 21, 2004 05:06 PM
Last Post: Mars_999
  glTexImage2D() and single colour component textures sealfin 3 6,507 Aug 10, 2004 04:45 AM
Last Post: arekkusu
  glTexImage2D() & memory understanding... sealfin 4 5,517 Aug 7, 2004 03:15 PM
Last Post: OneSadCookie