Strobe effect in multiple viewports

Hi all. I’ve got an interesting problem and searching the faq is quite time consuming. Anyways I have my two viewports working

set viewport1
draw scene

set viewport2
draw scene

This code works, however
maybe since I’m drawing the same thing
I’m getting like a stobe effect. Can anyone help me out?

Okay I think I got it. I just needed to change where my CLEAR_COLOR_BIT | CLEAR_DEPTH_BUFFER code was