Show
Ignore:
Timestamp:
01/29/09 10:27:23 (5 years ago)
Author:
robert
Message:

Replaced -1 with ~0u to fix warning due to being written to a UInt field. Note, OpenFlight? spec says -1, which is clearly an error in the spec, so we've had to guess at ~0u being an appropriate value.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/expPrimaryRecords.cpp

    r9382 r9581  
    709709        _records->writeInt16( 0 ); // Surface material code 
    710710        _records->writeInt16( 0 ); // Feature ID 
    711         _records->writeUInt32( -1 ); // Back color for bidirectional 
     711        _records->writeUInt32( ~0u ); // OpenFlight erronously say -1, so will assume ~0u is OK. Back color for bidirectional 
    712712        _records->writeInt32( EITHER ); // Display mode 
    713713        _records->writeFloat32( lp0._intensity ); // Intensity