• Advertisement
Sign in to follow this  

Simple OpenGl glTexImage2D help

This topic is 1842 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to work with opengl textures and following nehes tutorials with the triangle and the square when I try to add a texture to the square the triangle goes semi transparent in linux and doesnt even show in windows.

 

I have tracked it down to glTexImage2D that seems to be causing it I am assuming something to do with lighting is that the case? how can I fix it? Thanks

Share this post


Link to post
Share on other sites
Advertisement

Thanks for giving it a shot by searching for alpha blending I was able to find some similar questions that led me to the answer I have to call glDisable(GL_TEXTURE_2D); to draw the direct colors.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement