This commit is contained in:
GreemDev 2025-12-28 02:57:34 -06:00
parent cca4da9927
commit ac02cdb1d3
2 changed files with 7 additions and 5 deletions

View file

@ -131,7 +131,7 @@ namespace Ryujinx.Graphics.RenderDocApi
=> SetCaptureOption(option, boolean ? 1 : 0);
/// <summary>
/// Set one of the options for tweaking some behaviors of capturing.
/// Set one of the options for tweaking some behaviors of capturing.
/// </summary>
/// <param name="option">specifies which capture option should be set.</param>
/// <param name="single">the floating point value to set for the option.</param>
@ -147,7 +147,7 @@ namespace Ryujinx.Graphics.RenderDocApi
}
/// <summary>
/// Gets the current value of one of the different options in <see cref="CaptureOption"/>, writing it to an out parameter.
/// Gets the current value of one of the different options in <see cref="CaptureOption"/>, writing it to an out parameter.
/// </summary>
/// <param name="option">specifies which capture option should be retrieved.</param>
/// <param name="integer">the value of the capture option, if the option is a valid <see cref="CaptureOption"/> enum. Otherwise, <see cref="int.MaxValue"/>.</param>
@ -190,7 +190,7 @@ namespace Ryujinx.Graphics.RenderDocApi
}
/// <summary>
/// Gets the current value of one of the different options in <see cref="CaptureOption"/>.
/// Gets the current value of one of the different options in <see cref="CaptureOption"/>.
/// </summary>
/// <param name="option">specifies which capture option should be retrieved.</param>
/// <returns>
@ -201,7 +201,7 @@ namespace Ryujinx.Graphics.RenderDocApi
public static uint GetCaptureOptionU32(CaptureOption option) => Api->GetCaptureOptionU32(option);
/// <summary>
/// Gets the current value of one of the different options in <see cref="CaptureOption"/>.
/// Gets the current value of one of the different options in <see cref="CaptureOption"/>.
/// </summary>
/// <param name="option">specifies which capture option should be retrieved.</param>
/// <returns>

View file

@ -65,7 +65,9 @@ namespace Ryujinx.Ava.UI.Renderer
public bool EndRenderDocCapture()
{
return RenderDoc.IsAvailable && RenderDoc.IsFrameCapturing && RenderDoc.EndFrameCapture(nint.Zero, WindowHandle);
if (!RenderDoc.IsAvailable) return false;
return RenderDoc.IsFrameCapturing && RenderDoc.EndFrameCapture(nint.Zero, WindowHandle);
}
protected virtual void OnWindowDestroying()