fix StencilElements not rendering correctly

This commit is contained in:
zelophed 2021-11-07 20:43:40 +01:00
parent d82146a541
commit 35239d10f4

View file

@ -29,9 +29,11 @@ public class UIRenderHelper {
public static void init() { public static void init() {
RenderSystem.recordRenderCall(() -> { RenderSystem.recordRenderCall(() -> {
Window mainWindow = Minecraft.getInstance() Window mainWindow = Minecraft.getInstance().getWindow();
.getWindow(); framebuffer = new CustomRenderTarget(true);
framebuffer = CustomRenderTarget.create(mainWindow); framebuffer.resize(mainWindow.getWidth(), mainWindow.getHeight(), Minecraft.ON_OSX);
framebuffer.setClearColor(0, 0, 0, 0);
framebuffer.enableStencil();
}); });
} }