Skip to content

Commit c898fc6

Browse files
committed
Add defaults for TextureSave struct to fix JPEG saving
1 parent c74c3d3 commit c898fc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

renderdoc/api/replay/control_types.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,12 +412,12 @@ It is an :class:`AlphaMapping` that controls what behaviour to use. :data:`alpha
412412
)");
413413
AlphaMapping alpha;
414414
DOCUMENT("The primary color to use in conjunction with :data:`alpha`.");
415-
FloatVector alphaCol;
415+
FloatVector alphaCol = FloatVector(0.81f, 0.81f, 0.81f, 1.0f);
416416
DOCUMENT("The secondary color to use in conjunction with :data:`alpha`.");
417-
FloatVector alphaColSecondary;
417+
FloatVector alphaColSecondary = FloatVector(0.57f, 0.57f, 0.57f, 1.0f);
418418

419419
DOCUMENT("The quality to use when saving to a ``JPG`` file. Valid values are between 1 and 100.");
420-
int jpegQuality;
420+
int jpegQuality = 90;
421421
};
422422

423423
DECLARE_REFLECTION_STRUCT(TextureSave);

0 commit comments

Comments
 (0)