Replaced texSize2D to support Graphiccards with GLSL 1.2