![Blur](https://media.forgecdn.net/avatars/thumbnails/100/80/256/256/636312563329306301.png)
[1.7.10] Blur creates weird effect on other mod hud elements
KryptonCaptain opened this issue ยท 11 comments
As I don't manipulate the render state myself, other than telling vanilla to use a specific shader, I would guess that these mods are not properly setting up the state they need. It will need more investigation to find out just what flag is causing this.
Ok, I found the most probable cause. When there is a shader active, vanilla executes this code before doing any rendering:
private void preLoadShader()
{
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
GlStateManager.disableBlend();
GlStateManager.disableDepth();
GlStateManager.disableAlpha();
GlStateManager.disableFog();
GlStateManager.disableLighting();
GlStateManager.disableColorMaterial();
GlStateManager.enableTexture2D();
GlStateManager.bindTexture(0);
}
Judging by the screenshots, I'd guess that blending is disabled and these mods are not re-enabling it and assuming it to already be enabled. This is a fine assumption (apparently) unless shaders are involved.
In general you can assume that the state is as vanilla passes it to you... unless another mod doesn't reset it back after changing it.
In this case it is vanilla. I do not directly modify any GL state in this mod.
I've also just noticed that this issue is tagged 1.7.10, so I understand if you don't care to debug any further. @KryptonCaptain if you can verify this also occurs on 1.10/1.11 then maybe more can be done.
Doesn't seem to happen in 1.10+ as far as I can tell. Probably a 1.7 relict. And yes I'm not going to touch 1.7, we stopped supporting that.. a year ago or so?
I get that, latest version trend and whatnot. But if you can give me a pointer for how I'd fix it for my own version, that'd be appreciated