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

Method uninit

src/main/java/net/optifine/shaders/Shaders.java:3671–3755  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3669 }
3670
3671 public static void uninit()
3672 {
3673 if (isShaderPackInitialized)
3674 {
3675 checkGLError("Shaders.uninit pre");
3676
3677 for (int i = 0; i < ProgramsAll.length; ++i)
3678 {
3679 Program program = ProgramsAll[i];
3680
3681 if (program.getRef() != 0)
3682 {
3683 ARBShaderObjects.glDeleteObjectARB(program.getRef());
3684 checkGLError("del programRef");
3685 }
3686
3687 program.setRef(0);
3688 program.setId(0);
3689 program.setDrawBufSettings((String)null);
3690 program.setDrawBuffers((IntBuffer)null);
3691 program.setCompositeMipmapSetting(0);
3692 }
3693
3694 hasDeferredPrograms = false;
3695
3696 if (dfb != 0)
3697 {
3698 EXTFramebufferObject.glDeleteFramebuffersEXT(dfb);
3699 dfb = 0;
3700 checkGLError("del dfb");
3701 }
3702
3703 if (sfb != 0)
3704 {
3705 EXTFramebufferObject.glDeleteFramebuffersEXT(sfb);
3706 sfb = 0;
3707 checkGLError("del sfb");
3708 }
3709
3710 if (dfbDepthTextures != null)
3711 {
3712 GlStateManager.deleteTextures(dfbDepthTextures);
3713 fillIntBufferZero(dfbDepthTextures);
3714 checkGLError("del dfbDepthTextures");
3715 }
3716
3717 if (dfbColorTextures != null)
3718 {
3719 GlStateManager.deleteTextures(dfbColorTextures);
3720 fillIntBufferZero(dfbColorTextures);
3721 checkGLError("del dfbTextures");
3722 }
3723
3724 if (sfbDepthTextures != null)
3725 {
3726 GlStateManager.deleteTextures(sfbDepthTextures);
3727 fillIntBufferZero(sfbDepthTextures);
3728 checkGLError("del shadow depth");

Callers 8

checkWorldChangedMethod · 0.95
actionPerformedMethod · 0.95
onGuiClosedMethod · 0.95
actionPerformedMethod · 0.95
selectIndexMethod · 0.95
checkCustomCommandMethod · 0.95
updateCloudsMethod · 0.95
resetSettingsMethod · 0.95

Calls 11

checkGLErrorMethod · 0.95
getRefMethod · 0.95
setRefMethod · 0.95
setIdMethod · 0.95
setDrawBufSettingsMethod · 0.95
setDrawBuffersMethod · 0.95
deleteTexturesMethod · 0.95
fillIntBufferZeroMethod · 0.95
infoMethod · 0.95
deleteTextureMethod · 0.65

Tested by

no test coverage detected