View | Details | Raw Unified | Return to bug 232381 | Differences between
and this patch

Collapse All | Expand All

(-)files/patch-Source_FreeImage_PluginDDS.cpp (+17 lines)
Line 0 Link Here
1
--- Source/FreeImage/PluginDDS.cpp.orig	2018-11-18 16:17:59 UTC
2
+++ Source/FreeImage/PluginDDS.cpp
3
@@ -356,14 +356,6 @@ SwapHeader(DDSHEADER *header) {
4
 	for(int i=0; i<11; i++) {
5
 		SwapLong(&header->surfaceDesc.dwReserved1[i]);
6
 	}
7
-	SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwSize);
8
-	SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwFlags);
9
-	SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwFourCC);
10
-	SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwRGBBitCount);
11
-	SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwRBitMask);
12
-	SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwGBitMask);
13
-	SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwBBitMask);
14
-	SwapLong(&header->surfaceDesc.ddpfPixelFormat.dwRGBAlphaBitMask);
15
 	SwapLong(&header->surfaceDesc.ddsCaps.dwCaps1);
16
 	SwapLong(&header->surfaceDesc.ddsCaps.dwCaps2);
17
 	SwapLong(&header->surfaceDesc.ddsCaps.dwReserved[0]);

Return to bug 232381