DH API does not notify of texture change
Binding textures returned by the DH API as usual* results in broken code.
(usual* = how you'ld usually do it in MC modding)
The issue here is that DH doesn't use Minecraft's built-in GL State manager
This action will:
The DH API does not provide a way to notice this texture change.
Probably the only way to circumvent this issue is on my side is to do this:
This will keep MC's state management and the "real" state "in sync", but results in wasted performance and is generally not a nice solution,
(usual* = how you'ld usually do it in MC modding)
The issue here is that DH doesn't use Minecraft's built-in GL State manager
RenderSystem (yarn mappings). The problem only becomes apparent when DH reinitializes the LODRenderer.This action will:
glDeleteTexturesthe old textureglGenTexturesa new texture- On some systems the old and new texture will have the same id (valid by OpenGL Spec)
- Call
RenderSystem.bindTexturewith the same texture id. RenderSystemwill not callglBindTexturebecause it thinks the same old texture is still bound.- A deleted texture is now bound to
GL_TEXTURE6
The DH API does not provide a way to notice this texture change.
Probably the only way to circumvent this issue is on my side is to do this:
This will keep MC's state management and the "real" state "in sync", but results in wasted performance and is generally not a nice solution,