Jump to content
  • Advertisement
Sign in to follow this  
Prune

State without pushattribs in GL3?

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

How do I quickly save and restore state in GL3? The push/popattribs is marked as deprecated D:

Share this post


Link to post
Share on other sites
Advertisement
Push/Pop attribs is only there for debugging, it needlessly complicates/bloats the driver, hence the reason theyre gonna remove it.

u easily can workaround it, after all its only something like (performance is much better with version B as well)

A/
set X to 121
push attib();
change X
pop attrib();

B/
set X to 121
int oldX = X;
change X
set X to oldX;

Share this post


Link to post
Share on other sites
Quote:
Original post by Prune
Surely the powers that be deprecated it for a reason.


Are you going to use GL3 or not? If you are not, then don't worry about it.

Share this post


Link to post
Share on other sites
Yes. I've been going through removing all deprecated stuff from my code. The system I'm working on is in alpha and intended to be used over several years.

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!