unused function in case of unavailable OpenGL
Merge pull request #2254 from ilya-lavrenov:opengl