mirror of
https://github.com/GTNewHorizons/GTNHLib.git
synced 2026-11-27 15:23:15 +00:00
fix ClassCastException crash in SharedDepthFramebuffer if Iris is disabled (#218)
This commit is contained in:
1 parent
1ba88f027e
commit
3d5f91b837
1 file changed
+2
-1
+2
-1
@@ -107,7 +107,8 @@ public class SharedDepthFramebuffer extends CustomFramebuffer {
|
||||
public void bindFramebuffer() {
|
||||
super.bindFramebuffer();
|
||||
if (linkedBuffer != null) {
|
||||
final int attachment = Mods.ANGELICA ? ((IRenderTargetExt) linkedBuffer).iris$getDepthTextureId()
|
||||
final int attachment = Mods.ANGELICA && linkedBuffer instanceof IRenderTargetExt
|
||||
? ((IRenderTargetExt) linkedBuffer).iris$getDepthTextureId()
|
||||
: linkedBuffer.depthBuffer;
|
||||
if (attachment != depthAttachment) {
|
||||
depthAttachment = attachment;
|
||||
|
||||
Reference in new issue
Block a user