From c898fc6d993185c130a21d9e4e76399d0a0fc37b Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 3 Aug 2017 17:47:58 +0100 Subject: [PATCH] Add defaults for TextureSave struct to fix JPEG saving --- renderdoc/api/replay/control_types.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/renderdoc/api/replay/control_types.h b/renderdoc/api/replay/control_types.h index 3c2bfb007..e5b28558d 100644 --- a/renderdoc/api/replay/control_types.h +++ b/renderdoc/api/replay/control_types.h @@ -412,12 +412,12 @@ It is an :class:`AlphaMapping` that controls what behaviour to use. :data:`alpha )"); AlphaMapping alpha; DOCUMENT("The primary color to use in conjunction with :data:`alpha`."); - FloatVector alphaCol; + FloatVector alphaCol = FloatVector(0.81f, 0.81f, 0.81f, 1.0f); DOCUMENT("The secondary color to use in conjunction with :data:`alpha`."); - FloatVector alphaColSecondary; + FloatVector alphaColSecondary = FloatVector(0.57f, 0.57f, 0.57f, 1.0f); DOCUMENT("The quality to use when saving to a ``JPG`` file. Valid values are between 1 and 100."); - int jpegQuality; + int jpegQuality = 90; }; DECLARE_REFLECTION_STRUCT(TextureSave);