Matteo Bruni : d3dx9: Avoid reading outside of the allocated surface memory (Valgrind).