mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Fixed held item transparency for stained glass and pane
This commit is contained in:
parent
fbe21b1aa1
commit
d7860bd3df
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue