aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/GameRenderer.cpp
diff options
context:
space:
mode:
authorMarvelco <helito941@gmail.com>2026-03-06 23:35:30 +0200
committerGitHub <noreply@github.com>2026-03-06 15:35:30 -0600
commita4214805d1edfd79e4ee8b587e44faf537ec507c (patch)
tree890f34b01090bb2b17d6c1ae5d63555ab9f03dbb /Minecraft.Client/GameRenderer.cpp
parentd265ce29a2e31c8b07dfacee1c9dcdcc7d7a4171 (diff)
Fixed stained glass and glass pane not rendering the water and held item transparency for stained glass and pane (#748)
* fixed stained glass and glass pane not rendering the water * Fixed held item transparency for stained glass and pane
Diffstat (limited to 'Minecraft.Client/GameRenderer.cpp')
-rw-r--r--Minecraft.Client/GameRenderer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Minecraft.Client/GameRenderer.cpp b/Minecraft.Client/GameRenderer.cpp
index f51a24d8..3bf6cb0c 100644
--- a/Minecraft.Client/GameRenderer.cpp
+++ b/Minecraft.Client/GameRenderer.cpp
@@ -745,7 +745,12 @@ void GameRenderer::renderItemInHand(float a, int eye)
{
turnOnLightLayer(a);
PIXBeginNamedEvent(0,"Item in hand render");
+ glEnable(GL_BLEND);
+ glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+ glDepthMask(false);
itemInHandRenderer->render(a);
+ glDepthMask(true);
+ glDisable(GL_BLEND);
PIXEndNamedEvent();
turnOffLightLayer(a);
}