gl: fix wrong (effective) texture size