Fix TextureData and cube map loading on 32-bit platforms


The 4 GB size checks for TextureData, compressed TextureData and cube
map faces cast quint32::max to qsizetype, which overflows to -1 on
32-bit platforms such as WebAssembly, so every texture was rejected:

    TextureData dimensions 1024x512x0 are not usable

This made ProceduralSkyTextureData unusable as a light probe. Compare
in 64 bits instead, as was already done for calculateDataSize().

Change-Id: Ia934c3ace2a05e85f4ce5fd3449907b92f3276f7
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
commit71124457582db75ef9ecd91459dda5891745ceed
parentc1732e218f32aa2bf180a274826bbf0d1de485f2
authorAndy Nichols <andy.nichols@qt.io>
committerAndy Nichols <andy.nichols@qt.io>
commit timeThu, 15 Oct 2026 10:30:59 +0000