We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentaa280d3 commit5a6b28bCopy full SHA for 5a6b28b
PCD2DDS/PCD.cpp
@@ -123,7 +123,7 @@ void ConvertPCDToDDS(const char* filePath)
123
124
//Load texture data header
125
cdc::ps3::Texture::Header ps3tHeader;
126
-ifs.read(reinterpret_cast<cdc::ps3::Texture::Header*>(&ps3tHeader),sizeof(cdc::ps3::Texture::Header));
+ifs.read(reinterpret_cast<char*>(&ps3tHeader),sizeof(cdc::ps3::Texture::Header));
127
128
//Endian swap
129
ps3tHeader.m_magic =ReverseUInt(ps3tHeader.m_magic);
@@ -154,7 +154,7 @@ void ConvertPCDToDDS(const char* filePath)
154
unsignedint ddsPitchOrLinearSize =0x00010000;
155
unsignedint ddsDummy =0;
156
unsignedint ddsHeight = ps3tHeader.m_height;
157
-unsignedint ddsWidth = ps3tHeader._width;
+unsignedint ddsWidth = ps3tHeader.m_width;
158
unsignedint ddsDepth =0;//;ps3tHeader.m_depth;
159
unsignedint ddsMipCount =0;// ps3tHeader.m_numMipMaps;
160
unsignedint ddsFormat =cdc::ps3::Texture::getFormat(ps3tHeader.m_format);