Skip to content

Commit

Permalink
Don't force targets to be connected to a renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Dec 22, 2024
1 parent 52aa8ba commit f8ab5ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,10 @@ public void destroy() {

customImages.forEach(GlImage::destroy);

if (shadowRenderTargets != null) {
shadowRenderTargets.destroy();
}

if (shadowRenderer != null) {
shadowRenderer.destroy();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,6 @@ private String getBlockEntitiesDebugString() {
}

public void destroy() {
targets.destroy();
((MemoryTrackingRenderBuffers) buffers).freeAndDeleteBuffers();
}

Expand Down

0 comments on commit f8ab5ee

Please sign in to comment.