how to disable openGL?

I created a small function that adds more blend styles …
but I can’t figure out how to stop the blending. Make it staying within a border and not going inside the entire code
for some reason glDisable or ofDisable blendmode doesn’t work… anyone knows what am I doing wrong??

  
  
void Blendings(int type){  
    if (type>10||type<0)type=10;  
    switch (type) {  
        case 0:  
            glEnable(GL_BLEND);  
            glBlendEquation(GL_FUNC_REVERSE_SUBTRACT);  
            glBlendFunc(GL_SRC_ALPHA_SATURATE, GL_ONE);  
            break;  
        case 1:  
              
            glEnable(GL_BLEND);  
            glBlendEquation(GL_FUNC_REVERSE_SUBTRACT);  
            glBlendFunc(GL_SRC_COLOR, GL_ONE);  
            break;  
              
        case 2:  
              
            glEnable(GL_BLEND);  
            glBlendEquation(GL_ADD);  
            glBlendFunc(GL_ONE_MINUS_SRC_COLOR,GL_ONE_MINUS_SRC_COLOR);  
            break;  
              
        case 3:  
              
            glEnable(GL_BLEND);  
            glBlendEquation(GL_ADD);  
            glBlendFunc(GL_SRC_COLOR,GL_DST_COLOR);  
            break;  
              
        case 4:  
              
            glEnable(GL_BLEND);  
            glBlendEquation(GL_MIN_EXT);  
            glBlendFunc(GL_ONE_MINUS_DST_COLOR,GL_ONE_MINUS_CONSTANT_COLOR);  
            break;  
              
        case 5:  
              
              
            glEnable(GL_BLEND);  
            glBlendEquation(GL_MIN_EXT);  
            glBlendFunc(GL_ONE_MINUS_DST_COLOR,GL_ONE_MINUS_CONSTANT_COLOR);   
            break;  
              
        case 6:  
              
              
            glEnable(GL_BLEND);  
            glBlendEquation(GL_FUNC_REVERSE_SUBTRACT); //negative  
            glBlendFunc(GL_ONE_MINUS_DST_COLOR,GL_ONE_MINUS_CONSTANT_COLOR);  
            break;  
              
        case 7:  
            glEnable(GL_BLEND);  
            glBlendEquation(GL_FUNC_SUBTRACT); //negative  
            glBlendFunc(GL_SRC_COLOR,GL_ONE_MINUS_SRC_COLOR);  
            break;  
              
        case 8:  
            ofEnableBlendMode(OF_BLENDMODE_ADD);  
            break;  
              
        case 9:  
            ofEnableBlendMode(OF_BLENDMODE_MULTIPLY);  
            break;  
              
        case 10:  
            ofEnableBlendMode(OF_BLENDMODE_SCREEN);  
            break;  
    }