Added handling of endian in DrawElementsUShort/UInt implementations

This commit is contained in:
Robert Osfield
2004-11-01 10:04:40 +00:00
parent 4065c551ef
commit 41823a115d
3 changed files with 21 additions and 1 deletions

View File

@@ -54,6 +54,7 @@ void DrawElementsUByte::read(DataInputStream* in){
int size = in->readInt();
resize(size);
in->readCharArray((char*)&front(), size * CHARSIZE);
}
else{
throw Exception("DrawElementsUByte::read(): Expected DrawElementsUByte identification.");