small improvement to opengl template