replace to setParameter instead of raw texParameteri