Jump to content
  • Advertisement
Sign in to follow this  
PrestoChung

OpenGL Opengl 3.3 load & display texture

This topic is 2807 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

Advertisement

another thing I've noticed is glEnable(GL_TEXTURE_2D),
GL_TEXTURE_2D is no longer a valid enum


As no longer fixed function pipeline, the GL_TEXTURE_2D (and the others) flag is pointless.
glDisable(GL_TEXTURE_2D) = dont send to the shader. :)

Share this post


Link to post
Share on other sites

another thing I've noticed is glEnable(GL_TEXTURE_2D),
GL_TEXTURE_2D is no longer a valid enum



[quote name='sk8beast' timestamp='1295040628' post='4759021']

another thing I've noticed is glEnable(GL_TEXTURE_2D),
GL_TEXTURE_2D is no longer a valid enum


As no longer fixed function pipeline, the GL_TEXTURE_2D (and the others) flag is pointless.
glDisable(GL_TEXTURE_2D) = dont send to the shader. :)
[/quote]


Just to clarify this quote, glEnable/glDisable(GL_TEXTURE_2D) has no effect on shader pipeline. When you have a sampler at location 0, it will always sample the texture bound to glActiveTexture(GL_TEXTURE0), regardless of the enabled state of GL_TEXTURE_2D.

Share this post


Link to post
Share on other sites
If you post that inline with code tags or on codepad I'd consider taking a look at it, but I'm currently on a VPN which doesn't allow access to filesharing sites for security reasons. There's really no reason why you need to have people your download your files, just post the relevant parts.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!