Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Runtime/Model/Database/BacktraceDatabaseAttachmentManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ private string GetScreenshotPath(string dataPrefix)
// Create a render texture to render into
RenderTexture rt = RenderTexture.GetTemporary(targetWidth, targetHeight);

RenderTexture previousActiveRT = RenderTexture.active;

if (SystemInfo.graphicsUVStartsAtTop)
{
Graphics.Blit(screenTexture, rt, new Vector2(1.0f, -1.0f), new Vector2(0.0f, 1.0f));
Expand All @@ -130,7 +132,6 @@ private string GetScreenshotPath(string dataPrefix)
Graphics.Blit(screenTexture, rt);
}

RenderTexture previousActiveRT = RenderTexture.active;
RenderTexture.active = rt;

// Create a texture & read data from the active RenderTexture
Expand Down