I have a theory according to which the bugs I'm experiencing are due to a glPushMatrix being used without a matching glPopMatrix. My project is rather big so I would like to be able to find these missing glPopMatrix() easily. I thought of using a search using regular expression, but I can't seem to find out how to find what I want (plus, regexp in visual studio isn't exactly the same as what I'm used to (php) so I'm a bit lost. Anyways, any ideas on how to do this?
edit: I'm using C++
