correction bug detection souris (texture 2D)