Fix crash in QPaintedTextureImage when never calling repaint()


When creating a QPaintedTextureImage without calling repaint() nor
resizing, Qt 3D crashes because there is not generator created.

Even though it is not a normal use case, avoid crashing, by creating an
empty generator in the constructor.

Fixes: QTBUG-122613
Pick-to: 6.6 6.7
Change-Id: Iac5abd7d728330c5fa28e3de49a1e7ff261ace3f
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
commitb1767913a2f8b1e366ff426f74380fbc06f92b7a
parentc6fafcb66814c1de1fd67c1e049d94c94ce0d2f0
authorAurélien Brooke <aurelien@bahiasoft.fr>
committerAurélien Brooke <aurelien@bahiasoft.fr>
commit timeWed, 28 Feb 2024 06:57:32 +0100