You are loading the texture in the vertex shader? I've never seen that before. If you just want the texture size then it's more normal to send that in using a uniform or something.
↧