Fix depth issues on linux

This commit is contained in:
luboslenco
2020-05-29 12:32:40 +02:00
parent fd52a8fcd1
commit aad93df28e
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -75,6 +75,9 @@ class RenderPathDeferred {
t.height = 0;
t.format = "RGBA64";
t.scale = Inc.getSuperSampling();
#if kha_opengl
t.depth_buffer = "main";
#end
path.createRenderTarget(t);
}
{
+3
View File
@@ -39,6 +39,9 @@ class RenderPathPreview {
t.height = RenderUtil.matPreviewSize;
t.format = "RGBA64";
t.scale = Inc.getSuperSampling();
#if kha_opengl
t.depth_buffer = "mmain";
#end
path.createRenderTarget(t);
}