Update CCTexture2D.cpp

Fixed compilation error on MSVC compiler
Merge pull request #2569 from flaming0/patch-2

Update CCTexture2D.cpp [ci skip]