Update texture.cpp