Texture2D's setTexParameters supports two types of parameters.
Merge pull request #2188 from dingpinglv/Texture2dFixed

Texture2D's setTexParameters supports two types of parameters.