IwGameAds and Raw OpenGL Issues

Its been brought to our attention that if you are using raw Open GL functions and IwGameAds together then one system can affect the other.

The problem is that Iw2D is quite naughty in that it does not really save / restore GL states so many of the open GL states could have changed. A few things we noticed in particular are the GL shading model and texture matrix.

To switch back to smooth shading use:


To repair the texture matrix add the following before you render your GL content:


After your GL rendering is finished restore the GL texture matrix:


We will provide an additional GL test bed in our next update

Leave a Reply