Qt3D: Use static_cast for QTextureLoader private access


The downcast target is statically known: QTextureLoader
always holds a QTextureLoaderPrivate, which derives from
QAbstractTexturePrivate. static_cast expresses that fact
directly and needs no RTTI, matching the pattern used
elsewhere in the module.

dynamic_cast added a runtime type_info check that returned
null in the Android build and crashed when dataFunctor()
was called on the null pointer.

Pick-to: 6.12
Task-number: QTBUG-146930
Change-Id: I7280b5ca0d16cef6bcafddb6fa280f0e6fc2f62b
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
commita61d06cd5c2c9fd4436c6967af04b8da10d3661e
parentc117c99dee0dd4fb9345493e1f79d2a9c8ed5266
authorAssam Boudjelthia <assam.boudjelthia@qt.io>
committerAssam Boudjelthia <assam.boudjelthia@qt.io>
commit timeWed, 3 Jun 2026 13:30:08 +0000