Fix dynamic resolution

This commit is contained in:
luboslenco 2019-08-07 22:43:30 +02:00
parent ff3ca27aa9
commit ff5cf50e4e

View file

@ -383,14 +383,6 @@ class RenderPathDeferred {
@:access(iron.RenderPath)
public static function commands() {
#if rp_dynres
{
if (armory.data.Config.raw.rp_dynres != false) {
DynamicResolutionScale.run(path);
}
}
#end
path.setTarget("gbuffer0"); // Only clear gbuffer0
#if (rp_background == "Clear")
{
@ -411,6 +403,14 @@ class RenderPathDeferred {
RenderPathCreator.setTargetMeshes();
#if rp_dynres
{
if (armory.data.Config.raw.rp_dynres != false) {
DynamicResolutionScale.run(path);
}
}
#end
#if rp_stereo
{
path.drawStereo(drawMeshes);