cccd06ea44
The GLSL function textureSize() is not supported here, only when we start using OpenGL core profile will this work. For now check the supported GLSL version and use a somewhat slower replacement.