Fix depth issues on linux
This commit is contained in:
@@ -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);
|
||||
}
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user