Update CCTexture2D.cpp

Fixed compilation error on MSVC compiler