Release game's render texture before resizing it (#548)

This commit is contained in:
Braedon Lewis 2023-09-19 18:09:45 -04:00 committed by minenice55
parent b6d2e2d355
commit c4f73bf9f8

View file

@ -327,11 +327,20 @@ namespace HeavenStudio
height = (int)(width / 16f * 9f);
}
GameRenderTexture.Release();
GameRenderTexture.width = width;
GameRenderTexture.height = height;
GameRenderTexture.Create();
OverlayRenderTexture.Release();
OverlayRenderTexture.width = (int)(width * 1.5f);
OverlayRenderTexture.height = (int)(height * 1.5f);
OverlayRenderTexture.Create();
}
public static void ChangeMasterVolume(float value)