MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / updateAlphaBlend

Method updateAlphaBlend

src/main/java/net/optifine/shaders/Shaders.java:3496–3521  ·  view source on GitHub ↗
(Program programOld, Program programNew)

Source from the content-addressed store, hash-verified

3494 }
3495
3496 private static void updateAlphaBlend(Program programOld, Program programNew)
3497 {
3498 if (programOld.getAlphaState() != null)
3499 {
3500 GlStateManager.unlockAlpha();
3501 }
3502
3503 if (programOld.getBlendState() != null)
3504 {
3505 GlStateManager.unlockBlend();
3506 }
3507
3508 GlAlphaState glalphastate = programNew.getAlphaState();
3509
3510 if (glalphastate != null)
3511 {
3512 GlStateManager.lockAlpha(glalphastate);
3513 }
3514
3515 GlBlendState glblendstate = programNew.getBlendState();
3516
3517 if (glblendstate != null)
3518 {
3519 GlStateManager.lockBlend(glblendstate);
3520 }
3521 }
3522
3523 private static void setProgramUniform1i(ShaderUniform1i su, int value)
3524 {

Callers 1

useProgramMethod · 0.95

Calls 6

unlockAlphaMethod · 0.95
unlockBlendMethod · 0.95
lockAlphaMethod · 0.95
lockBlendMethod · 0.95
getAlphaStateMethod · 0.45
getBlendStateMethod · 0.45

Tested by

no test coverage detected