Skip to content

Commit

Permalink
Fix compilation on big endian; this particular swap should not be nec…
Browse files Browse the repository at this point in the history
…essary
  • Loading branch information
michaliskambi committed Apr 13, 2023
1 parent 58d41af commit 63ccfc4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/scene/load/x3dloadinternal3ds.pas
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,6 @@ function TryReadColorInSubchunks(var Col: TVector3;
CHUNK_RGBB, CHUNK_RGBB_GAMMA:
begin
Stream.ReadBuffer(Col3Byte, SizeOf(Col3Byte));
{$ifdef ENDIAN_BIG}
b := Col3Byte[0];
Col3Byte[0] := Col3Byte[2];
Col3Byte[2] := b;
{$endif ENDIAN_BIG}
Col := Vector3(Col3Byte);
result := true;
break;
Expand Down

0 comments on commit 63ccfc4

Please sign in to comment.