[Solved] Using glScissor

I was reading about [icode]glScissor[/icode], but I couldn’t figure out how to use it. This is what I have but it doesn’t trim anything.


glPushMatrix();
renderable.render();
glEnable(GL_SCISSOR_TEST);
glScissor(Math.round(panel.x + sx), Math.round(panel.y + sy), Math.round(panel.width), Math.round(panel.height));
glDisable(GL_SCISSOR_TEST);
glPopMatrix();

Hope someone can help me :slight_smile:

CopyableCougar4