Jump to content
  • Advertisement
Sign in to follow this  
Lord_Evil

OpenGL CG Texture/Sampler Problem

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

Hi there, For managing texture states in CG (activating, setting the correct texture unit etc.) I used the CG function cgGLSetManageTextureParameters(context, CG_TRUE). This worked fine unless my computer crashed (not due to CG or anything similar [smile]). I restored the system but now cgGLSetManageTextureParameters(context, CG_TRUE) doesn`t work anymore. If I enable the sampler parameters manually it works fine but CG won`t do the work for me anymore. I didn`t change any DLL or LIB I used before except the driver which I didn`t update yet. However, I`d say that it shouldn`t be a driver problem since doing it manually works and I assume that CG would use the same OpenGL calls in either case. So has anyone an idea of why cgGLSetManageTextureParameters(context, CG_TRUE) doesn`t work anymore? Maybe I`m wrong in my assumtions and you could correct me. Additionally, what would those of you say that have experience with CG. Should I enable/disable the sampler parameters manually or try to get CG do this automatically? Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
Downloaded a new driver, seems to work now. I'm still wondering why that happend.

Also, is there any performance difference between self managed paremeters and cg managed parameters?

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!