mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-14 20:33:43 +01:00
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() {
|
||||
RenderSystem.recordRenderCall(() -> {
|
||||
Window mainWindow = Minecraft.getInstance()
|
||||
.getWindow();
|
||||
framebuffer = CustomRenderTarget.create(mainWindow);
|
||||
Window mainWindow = Minecraft.getInstance().getWindow();
|
||||
framebuffer = new CustomRenderTarget(true);
|
||||
framebuffer.resize(mainWindow.getWidth(), mainWindow.getHeight(), Minecraft.ON_OSX);
|
||||
framebuffer.setClearColor(0, 0, 0, 0);
|
||||
framebuffer.enableStencil();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue