Explorar o código

Fix depth attach on metal

luboslenco %!s(int64=2) %!d(string=hai) anos
pai
achega
09d779603b
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      Sources/arm/render/RenderPathDeferred.hx

+ 6 - 0
Sources/arm/render/RenderPathDeferred.hx

@@ -555,6 +555,12 @@ class RenderPathDeferred {
 				t.scale = Inc.getSuperSampling();
 				path.createRenderTarget(t);
 			}
+
+			#if kha_metal
+			// TODO: Fix depth attach for gbuffer0_copy on metal
+			// Use resize to re-create buffers from scratch for now
+			path.resize();
+			#end
 		}
 	}