mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-15 06:05:10 +00:00
Release game's render texture before resizing it (#548)
This commit is contained in:
parent
54d8e70124
commit
fad4173fa7
1 changed files with 9 additions and 0 deletions
|
@ -327,11 +327,20 @@ namespace HeavenStudio
|
||||||
height = (int)(width / 16f * 9f);
|
height = (int)(width / 16f * 9f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GameRenderTexture.Release();
|
||||||
|
|
||||||
GameRenderTexture.width = width;
|
GameRenderTexture.width = width;
|
||||||
GameRenderTexture.height = height;
|
GameRenderTexture.height = height;
|
||||||
|
|
||||||
|
GameRenderTexture.Create();
|
||||||
|
|
||||||
|
|
||||||
|
OverlayRenderTexture.Release();
|
||||||
|
|
||||||
OverlayRenderTexture.width = (int)(width * 1.5f);
|
OverlayRenderTexture.width = (int)(width * 1.5f);
|
||||||
OverlayRenderTexture.height = (int)(height * 1.5f);
|
OverlayRenderTexture.height = (int)(height * 1.5f);
|
||||||
|
|
||||||
|
OverlayRenderTexture.Create();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void ChangeMasterVolume(float value)
|
public static void ChangeMasterVolume(float value)
|
||||||
|
|
Loading…
Reference in a new issue