working fix for issue #9 renderer assert

The previous fix didn't work: https://github.com/Eyescale/GLStats/issues/9
This fix is tested and does work for us.