Fix metal command list flush

This commit is contained in:
luboslenco
2023-07-31 11:08:25 +02:00
parent 492a0d01eb
commit 628cc36808
2 changed files with 4 additions and 3 deletions
-3
View File
@@ -835,9 +835,6 @@ class UIBase {
if (mouse.started() && Config.keymap.action_paint == Config.keymap.action_rotate) {
action_paint_remap = Config.keymap.action_paint;
RenderUtil.pickPosNorTex();
#if kha_metal
RenderUtil.pickPosNorTex(); // Flush
#end
var isMesh = Math.abs(Context.raw.posXPicked) < 50 && Math.abs(Context.raw.posYPicked) < 50 && Math.abs(Context.raw.posZPicked) < 50;
#if kha_android
// Allow rotating with both pen and touch, because hovering a pen prevents touch input on android
+4
View File
@@ -418,6 +418,10 @@ class RenderUtil {
arm.render.RenderPathPaint.setPlaneMesh();
}
arm.render.RenderPathPaint.commandsPaint(false);
#if kha_metal
// Flush command list
arm.render.RenderPathPaint.commandsPaint(false);
#end
if (Context.raw.paint2d) {
arm.render.RenderPathPaint.restorePlaneMesh();
}