Some work on render command #2445

This commit is contained in:
drcrazy 2021-07-08 14:29:43 +03:00
parent b8715ecdda
commit 1af68f5422

View file

@ -136,8 +136,7 @@ public class ItemStackRenderer implements HudRenderCallback {
framebuffer.endWrite();
try (NativeImage nativeImage = new NativeImage(size, size, false)) {
// FIXME 1.17
//GlStateManager.bindTexture(framebuffer.getColorAttachment());
RenderSystem.bindTexture(framebuffer.getColorAttachment());
nativeImage.loadFromTextureImage(0, false);
nativeImage.mirrorVertically();