minor refactoring in class glrenderthread