glScissor() does nothing.

I started working on a library for my game based off of mattdesl’s wiki, and I can’t get glScissor to work.

As the title states this code does nothing for me.


        glScissor(100, 100, 100, 100);
        glEnable(GL_SCISSOR_TEST);
        render to spritebatch
        glDisable(GL_SCISSOR_TEST);

Wow, nevermind I just got it. You have to flush before disabling scissor_test