Bugfix when GLSL disabled