after a call to :
glTexImage2D( GL_TEXTURE_2D,0,4,mw,mh,0,GL_RGBA,GL_UNSIGNED_BYTE,mImage );
, all of my quads and tris aren’t drawn. I’m assuming it’s because they’re being texture mapped, and most of the texture is alpha 0, so it shouldn’t.
how do you turn off a texture?
i know that
glDisable( GL_TEXTURE_2D ); glEnable( GL_TEXTURE_2D );
works, but that’s a lot of state.
also, i just enable texture_2d when i attach ogl to an hDC, is this wrong practice?
thx in advance
-Succinct