fix StencilElements not rendering correctly
This commit is contained in:
parent
d82146a541
commit
35239d10f4
1 changed files with 5 additions and 3 deletions
|
@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue