Merged revision 4510-4533 from 1.8 branch. X mesh loader fix
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4534 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
28267596e8
commit
4eeed942c0
|
@ -2269,6 +2269,8 @@ void CXMeshFileLoader::readUntilEndOfLine()
|
|||
|
||||
u16 CXMeshFileLoader::readBinWord()
|
||||
{
|
||||
if (P>=End)
|
||||
return 0;
|
||||
#ifdef __BIG_ENDIAN__
|
||||
const u16 tmp = os::Byteswap::byteswap(*(u16 *)P);
|
||||
#else
|
||||
|
@ -2281,6 +2283,8 @@ u16 CXMeshFileLoader::readBinWord()
|
|||
|
||||
u32 CXMeshFileLoader::readBinDWord()
|
||||
{
|
||||
if (P>=End)
|
||||
return 0;
|
||||
#ifdef __BIG_ENDIAN__
|
||||
const u32 tmp = os::Byteswap::byteswap(*(u32 *)P);
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue