Skip to content

Commit

Permalink
Ensure colour space options are copies and compared properly
Browse files Browse the repository at this point in the history
  • Loading branch information
AnyOldName3 committed Oct 14, 2024
1 parent 4474fb4 commit 18c84cc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/vsg/io/Options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ Options::Options(const Options& options) :
mapRGBtoRGBAHint(options.mapRGBtoRGBAHint),
sceneCoordinateConvention(options.sceneCoordinateConvention),
formatCoordinateConventions(options.formatCoordinateConventions),
sceneVertexColorColorSpace(options.sceneVertexColorColorSpace),
sceneMaterialColorSpace(options.sceneMaterialColorSpace),
formatVertexColorColorSpaces(options.formatVertexColorColorSpaces),
formatMaterialColorSpaces(options.formatMaterialColorSpaces),
shaderSets(options.shaderSets),
inheritedState(options.inheritedState),
instrumentation(options.instrumentation),
Expand Down Expand Up @@ -79,6 +83,10 @@ int Options::compare(const Object& rhs_object) const
if ((result = compare_value(mapRGBtoRGBAHint, rhs.mapRGBtoRGBAHint))) return result;
if ((result = compare_value(sceneCoordinateConvention, rhs.sceneCoordinateConvention))) return result;
if ((result = compare_value(formatCoordinateConventions, rhs.formatCoordinateConventions))) return result;
if ((result = compare_value(sceneVertexColorColorSpace, rhs.sceneVertexColorColorSpace))) return result;
if ((result = compare_value(sceneMaterialColorSpace, rhs.sceneMaterialColorSpace))) return result;
if ((result = compare_value(formatVertexColorColorSpaces, rhs.formatVertexColorColorSpaces))) return result;
if ((result = compare_value(formatMaterialColorSpaces, rhs.formatMaterialColorSpaces))) return result;
return compare_value(shaderSets, rhs.shaderSets);
}

Expand Down

0 comments on commit 18c84cc

Please sign in to comment.