Detect rendering driver properly and group some OpenGL calls