mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-19 20:09:39 +00:00
Fix framebuffer depth not clearing (#1051)
This commit is contained in:
1 parent
ea39712749
commit
e7fa7f62d0
3 files changed
+27
-32
No files matched your search
@@ -175,7 +175,7 @@ public class DeferredWorldRenderingPipeline implements WorldRenderingPipeline, R
|
||||
|
||||
final Framebuffer main = Minecraft.getMinecraft().getFramebuffer();
|
||||
|
||||
final int depthTextureId = ((IRenderTargetExt)main).getIris$depthTextureId();
|
||||
final int depthTextureId = ((IRenderTargetExt)main).iris$getDepthTextureId();
|
||||
final int internalFormat = TextureInfoCache.INSTANCE.getInfo(depthTextureId).getInternalFormat();
|
||||
final DepthBufferFormat depthBufferFormat = DepthBufferFormat.fromGlEnumOrDefault(internalFormat);
|
||||
|
||||
@@ -911,7 +911,7 @@ public class DeferredWorldRenderingPipeline implements WorldRenderingPipeline, R
|
||||
|
||||
final Framebuffer main = Minecraft.getMinecraft().getFramebuffer();
|
||||
|
||||
final int depthTextureId = ((IRenderTargetExt)main).getIris$depthTextureId();
|
||||
final int depthTextureId = ((IRenderTargetExt)main).iris$getDepthTextureId();
|
||||
final int internalFormat = TextureInfoCache.INSTANCE.getInfo(depthTextureId).getInternalFormat();
|
||||
final DepthBufferFormat depthBufferFormat = DepthBufferFormat.fromGlEnumOrDefault(internalFormat);
|
||||
|
||||
|
||||
Reference in new issue
Block a user