fixed viewer when glsl is not supported on the platform