Fix D3D9 memory leak error.
Check if texture sampler is dirty.
Modify texture is dynamic.