inline code draws, function call doesn't


I am stuck due to a very weird bug in my code. If I inline my drawing code, everything works. As soon as I put that code in a function call, i get a blank screen. Is there any relation betwen OpenGl matrices and C++ scope rules?


Nope; GL state isn’t affected by C++ scope. If you post the codesnippet/function that’s behaving oddly we’ll try and help. (Please use UBB code tags; it makes code much easier to read.)