Fix split view for metal and android

This commit is contained in:
Lubos Lenco
2021-09-08 13:09:41 +02:00
parent 9f937c3e9e
commit 2c637a9bb5
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -568,7 +568,11 @@ class RenderPathDeferred {
static function drawSplit() {
if (Context.splitView && !Context.paint2dView) {
#if (kha_metal || krom_android)
Context.ddirty = 2;
#else
Context.ddirty = 1;
#end
var cam = Scene.active.camera;
Context.viewIndex = Context.viewIndex == 0 ? 1 : 0;
+4
View File
@@ -152,7 +152,11 @@ class RenderPathForward {
static function drawSplit() {
if (Context.splitView && !Context.paint2dView) {
#if (kha_metal || krom_android)
Context.ddirty = 2;
#else
Context.ddirty = 1;
#end
var cam = Scene.active.camera;
Context.viewIndex = Context.viewIndex == 0 ? 1 : 0;