   [GL] Blending Makes Sprite Disappear
  I'm porting my C++ engine (which uses SDL/OpenGL) to Java (using sdljava). I've run into an issue with alpha blending, however. If I 'glEnable(GL_BLEND)', my sprite does not get rendered (or, at least it's invisible). All of the code is identical to the C++ version, which works fine.The only difference is that I'm using GL_RGBA instead of GL_BGRA when calling glTexImage2D because the Java OpenGL wrapper that I'm using doesn't seem to support BGRA for some reason.Has anyone had this issue or know anything about it?[EDIT]: I should add that the sprite looks correct if GL_BLEND is disabled, but without the transparency obviously.[Edited by - Uphoreum on June 27, 2009 7:24:59 PM]
  Is the alpha of the sprite non-zero?   ;  Actually, I figured it out. When I was scaling the sprite in C++, I used SDL_SetAlpha on the original surface (to be honest, I'm not sure what exactly it does, but I know it needs to be done), but in my Java port, I accidentally did it on the scaled sprite... :-(   