mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
fixed compile errors for osx
This commit is contained in:
parent
48c8a78025
commit
f8d69b2fe6
|
@ -52,7 +52,7 @@ struct CFontSizeData
|
|||
int m_FontSize;
|
||||
FT_Face *m_pFace;
|
||||
|
||||
unsigned m_aTextures[2];
|
||||
GLuint m_aTextures[2];
|
||||
int m_TextureWidth;
|
||||
int m_TextureHeight;
|
||||
|
||||
|
|
|
@ -154,7 +154,7 @@ bool CDataFileReader::Open(class IStorage *pStorage, const char *pFilename)
|
|||
}
|
||||
|
||||
#if defined(CONF_ARCH_ENDIAN_BIG)
|
||||
swap_endian(m_pDataFile->m_pData, sizeof(int), Header.Swaplen / sizeof(int));
|
||||
swap_endian(m_pDataFile->m_pData, sizeof(int), Header.m_Swaplen / sizeof(int));
|
||||
#endif
|
||||
|
||||
//if(DEBUG)
|
||||
|
@ -476,7 +476,7 @@ int CDataFileWriter::AddDataSwapped(int Size, void *pData)
|
|||
int Index;
|
||||
mem_copy(pSwapped, pData, Size);
|
||||
swap_endian(&pSwapped, sizeof(int), Size/sizeof(int));
|
||||
Index = AddData(Size, Swapped);
|
||||
Index = AddData(Size, pSwapped);
|
||||
mem_free(pSwapped);
|
||||
return Index;
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue