I am using openGL instructions in vega prime for drawing.
I am using the following code.
//storing the current attribute values
//restoring old attribute values
But the graphics are not resetting to its previous values(eg. sky color is changed when drawing). But after completion of whole openGL drawing, the vega prime scene is resetting to its previous value(even with out resetting the old attribute values). But I want the remain scene in its original state while drawing. How can I do that? (i.e. the background scene should not change while drawing with openGL functions).