Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_WjO53Sw8.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
create-gl4es-stencil-fix - 墨喵 Minecraft 资源
create-gl4es-stencil-fix 图标

create-gl4es-stencil-fix

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/create-gl4es-stencil-fix
资源信息

Minecraft 版本: 1.21.1

平台: neoforge

资源介绍

GL4ES Stencil Fix

A tiny Forge mod that fixes a crash affecting Create (机械动力) on mobile Minecraft launchers that use OpenGL wrappers like GL4ES or Krypton Wrapper.

The Problem

On mobile Android launchers (ZalithLauncher, PojavLauncher, FCL, etc.), the game crashes during loading with:

  • GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT (GL4ES / GLES 2.0)
  • GL_FRAMEBUFFER_UNSUPPORTED (Krypton Wrapper / GLES 3.x)

The crash happens because Create/Ponder calls RenderTarget.enableStencil(), which tries to attach a stencil buffer to an existing FBO. Mobile OpenGL wrappers can't handle this operation, causing Forge to throw a fatal RuntimeException.

The Fix

This mod uses a Forge Coremod (ASM bytecode transformer) that runs at class-load time to replace enableStencil() with a no-op. The stencil buffer call is never made, so the crash never occurs.

If the patch is applied successfully, you'll see this line in the log:
"""
[GL4ESFix] SUCCESS: RenderTarget.enableStencil() replaced with no-op RETURN.
"""

Compatibility

  • Minecraft: 1.20.1
  • Forge: 47.x
  • Create: 0.5.x and 6.0.x (all 1.20.1 versions)
  • Launchers: ZalithLauncher, PojavLauncher, FCL, and any GL4ES-based launcher
  • Client-side only — does not need to be installed on servers

Side Effects

The stencil buffer is used by Create/Ponder for UI clipping in the Ponder tutorial viewer. With this fix, that clipping effect is disabled, which may cause minor visual artifacts (UI elements slightly overflowing their bounds) in the Ponder screen.

Normal gameplay, machines, contraptions, and all other features are completely unaffected.

Installation

Place the jar in your .minecraft/mods/ folder alongside Create. No additional configuration required.

下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
Mcqueen Boat

价格:0 墨喵币
下载量:0

查看详情
YChatManager

价格:0 墨喵币
下载量:0

查看详情
fixEcount

价格:0 墨喵币
下载量:0

查看详情
CreeperShield

价格:0 墨喵币
下载量:0

查看详情