forked from pool/libqt5-qt3d
ebac906337
Update to 5.6.1 OBS-URL: https://build.opensuse.org/request/show/401297 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qt3d?expand=0&rev=2
18 lines
697 B
Diff
18 lines
697 B
Diff
Index: qt3d-opensource-src-5.6.0/src/3rdparty/3rdparty/assimp/code/Bitmap.cpp
|
|
===================================================================
|
|
--- qt3d-opensource-src-5.6.0.orig/src/3rdparty/assimp/code/Bitmap.cpp
|
|
+++ qt3d-opensource-src-5.6.0/src/3rdparty/3rdparty/assimp/code/Bitmap.cpp
|
|
@@ -82,7 +82,12 @@ namespace Assimp {
|
|
|
|
template<typename T>
|
|
inline std::size_t Copy(uint8_t* data, T& field) {
|
|
+#if (defined AI_BUILD_BIG_ENDIAN)
|
|
+ T swapped=AI_BE(field);
|
|
+ std::memcpy(data, &swapped, sizeof(swapped)); return sizeof(field);
|
|
+#else
|
|
std::memcpy(data, &AI_BE(field), sizeof(field)); return sizeof(field);
|
|
+#endif
|
|
}
|
|
|
|
void Bitmap::WriteHeader(Header& header, IOStream* file) {
|