Don't reset texture width/height unless the size is different
Merge pull request #4513 from raven02/patch-18

Don't reset texture width/height unless the size is different