Browse Source

whoops, fix bigendian machines

David Rose 18 years ago
parent
commit
aef3383a23
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/gobj/geomVertexArrayData.cxx

+ 1 - 1
panda/src/gobj/geomVertexArrayData.cxx

@@ -398,7 +398,7 @@ reverse_data_endianness(unsigned char *dest, const unsigned char *source,
           // Reverse the bytes of each component.
           ReversedNumericData nd(source + ci, component_bytes);
           nd.store_value(dest + ci, component_bytes);
-          pi += component_bytes;
+          ci += component_bytes;
         }
       }
     }