dwmkerr / sharpgl

Use OpenGL in .NET applications. SharpGL wraps all modern OpenGL features and offers a powerful scene graph to aid development.
MIT License
753 stars 300 forks source link

Simplify a couple things. #174

Closed AraHaan closed 4 years ago

AraHaan commented 4 years ago

Because of language features the if's can be replaced with an assignment that checks the old value before reassigning. It basically does the same thing without the explicit if's written.