fix crash when terrain textures are smaller than 256px

1 job for master in 5 minutes and 7 seconds (queued for 1 minute and 29 seconds)
Status Job ID Name Coverage
  Build
passed #174632474
build

00:05:07